Merge branch 'iu-ldap-cybergateway-group' into develop
diff --git a/README b/README
new file mode 100644
index 0000000..3cbaf32
--- /dev/null
+++ b/README
@@ -0,0 +1,4 @@
+Apache Airavata PHP Gateway also known as PGA.
+
+PGA is the current reference implementation of Apache Airavata. There is an active development effort to replace the reference implementation using a Django based portal.
+
diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php
index 6377c5d..9216c5b 100644
--- a/app/controllers/AccountController.php
+++ b/app/controllers/AccountController.php
@@ -185,6 +185,13 @@
}
+ public function apiLoginSubmit() {
+ $username = strtolower(Input::get("username"));
+ $password = Input::get("password");
+ $response = Keycloak::authenticate($username, $password);
+ return Response::json($response);
+ }
+
public function oauthCallback()
{
if (!isset($_GET["code"])) {
diff --git a/app/controllers/AdminController.php b/app/controllers/AdminController.php
index df4d71e..e05d2ce 100644
--- a/app/controllers/AdminController.php
+++ b/app/controllers/AdminController.php
@@ -121,7 +121,7 @@
$gatewaysInfo = CRUtilities::getAllGatewayProfilesData();
$gateways = $gatewaysInfo["gateways"];
usort($gateways, array($this, "cmp"));
- $tokens = AdminUtilities::get_all_ssh_tokens();
+ $tokens = AdminUtilities::get_all_ssh_tokens_with_description();
$pwdTokens = AdminUtilities::get_all_pwd_tokens();
$srData = SRUtilities::getEditSRData();
$crData = CRUtilities::getEditCRData();
@@ -345,7 +345,7 @@
public function credentialStoreView(){
Session::put("admin-nav", "credential-store");
- $tokens = AdminUtilities::get_all_ssh_tokens();
+ $tokens = AdminUtilities::get_all_ssh_tokens_with_description();
$pwdTokens = AdminUtilities::get_all_pwd_tokens();
//var_dump( $tokens); exit;
return View::make("admin/manage-credentials", array("tokens" => $tokens , "pwdTokens" => $pwdTokens) );
@@ -423,32 +423,32 @@
}
public function createSSH(){
- $newToken = AdminUtilities::create_ssh_token_for_gateway(null);
- $pubkey = AdminUtilities::get_pubkey_from_token( $newToken);
- return Response::json( array( "token" => $newToken, "pubkey" => $pubkey));
-
+ $description = Input::get("description");
+ $newToken = AdminUtilities::create_ssh_token_for_gateway($description);
+ return Redirect::to("admin/dashboard/credential-store")->with("message", "SSH Key was successfully created");
}
public function createPWD(){
AdminUtilities::create_pwd_token(Input::all());
- return $this->credentialStoreView();
+ return Redirect::to("admin/dashboard/credential-store")->with("message", "Password Credential was successfully created");
+
}
public function removeSSH(){
$removeToken = Input::get("token");
if( AdminUtilities::remove_ssh_token( $removeToken) )
- return 1;
+ return Redirect::to("admin/dashboard/credential-store")->with("message", "SSH Key was successfully deleted");
else
- return 0;
+ return Redirect::to("admin/dashboard/credential-store")->with("error-message", "Unable to delete SSH Key");
}
public function removePWD(){
$removeToken = Input::get("token");
if( AdminUtilities::remove_pwd_token( $removeToken) )
- return 1;
+ return Redirect::to("admin/dashboard/credential-store")->with("message", "Password Credential was successfully deleted");
else
- return 0;
+ return Redirect::to("admin/dashboard/credential-store")->with("error-message", "Unable to delete Password Credential");
}
@@ -641,4 +641,4 @@
return 0;
}
-}
\ No newline at end of file
+}
diff --git a/app/libraries/AdminUtilities.php b/app/libraries/AdminUtilities.php
index b66ab4c..3c11266 100644
--- a/app/libraries/AdminUtilities.php
+++ b/app/libraries/AdminUtilities.php
@@ -4,7 +4,7 @@
use Airavata\Model\Workspace\GatewayApprovalStatus;
use Airavata\Model\Workspace\Notification;
use Airavata\Model\Workspace\NotificationPriority;
-use Airavata\Model\Credential\Store\CredentialOwnerType;
+use Airavata\Model\Credential\Store\SummaryType;
use Illuminate\Support\Facades\Log;
class AdminUtilities
@@ -310,42 +310,41 @@
}
public static function create_ssh_token_for_gateway($description) {
- return Airavata::generateAndRegisterSSHKeys(
- Session::get('authz-token'), Session::get("gateway_id"), Session::get("username"), $description, CredentialOwnerType::GATEWAY);
+ $token = Airavata::generateAndRegisterSSHKeys(Session::get('authz-token'), $description);
}
public static function create_ssh_token_for_user($description) {
- return Airavata::generateAndRegisterSSHKeys(
- Session::get('authz-token'), Session::get("gateway_id"), Session::get("username"), $description, CredentialOwnerType::USER);
+ return Airavata::generateAndRegisterSSHKeys(Session::get('authz-token'), $description);
}
public static function create_pwd_token($inputs){
$username = $inputs['username'];
$password = $inputs['password'];
$description = $inputs['description'];
- return $newToken = Airavata::registerPwdCredential( Session::get('authz-token'), Session::get("gateway_id"),
- Session::get("username"), $username, $password, $description);
+ return $newToken = Airavata::registerPwdCredential( Session::get('authz-token'),
+ $username, $password, $description);
}
- public static function get_all_ssh_tokens(){
- return Airavata::getAllGatewaySSHPubKeys( Session::get('authz-token'), Session::get("gateway_id") );
+ public static function get_all_ssh_tokens_with_description(){
+ return Airavata::getAllCredentialSummaries( Session::get('authz-token'), "SSH");
}
public static function get_all_pwd_tokens(){
- return Airavata::getAllGatewayPWDCredentials( Session::get('authz-token'), Session::get("gateway_id") );
- }
-
- public static function get_pubkey_from_token( $token){
- return Airavata::getSSHPubKey( Session::get('authz-token'), $token, Session::get("gateway_id"));
+ $credential_summaries = Airavata::getAllCredentialSummaries(Session::get('authz-token'), SummaryType::PASSWD);
+ $result = [];
+ foreach ($credential_summaries as $credential_summary) {
+ $result[$credential_summary->token] = $credential_summary->description;
+ }
+ return $result;
}
public static function remove_ssh_token( $token){
- return Airavata::deleteSSHPubKey( Session::get('authz-token'), $token, Session::get("gateway_id"));
+ return Airavata::deleteSSHPubKey( Session::get('authz-token'), $token);
}
public static function remove_pwd_token( $token){
- return Airavata::deletePWDCredential( Session::get('authz-token'), $token, Session::get("gateway_id"));
+ return Airavata::deletePWDCredential( Session::get('authz-token'), $token);
}
public static function add_or_update_notice( $notifData, $update = false){
@@ -403,4 +402,4 @@
return true;
}
-}
\ No newline at end of file
+}
diff --git a/app/libraries/Airavata/API/Airavata.php b/app/libraries/Airavata/API/Airavata.php
index 30fecc2..7786c2b 100644
--- a/app/libraries/Airavata/API/Airavata.php
+++ b/app/libraries/Airavata/API/Airavata.php
@@ -1,7 +1,7 @@
<?php
namespace Airavata\API;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -246,19 +246,9 @@
/**
* Generate and Register SSH Key Pair with Airavata Credential Store.
*
- * @param gatewayId
- * The identifier for the requested Gateway.
- *
- * @param userName
- * The User for which the credential should be registered. For community accounts, this user is the name of the
- * community user name. For computational resources, this user name need not be the same user name on resoruces.
- *
* @param description
* The description field for a credential type, all type of credential can have a description.
*
- * @param credentialOwnerType
- * The type of owner of this credential. Two possible values: GATEWAY (default) and USER
- *
* @return airavataCredStoreToken
* An SSH Key pair is generated and stored in the credential store and associated with users or community account
* belonging to a Gateway.
@@ -266,26 +256,16 @@
*
*
* @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $gatewayId
- * @param string $userName
* @param string $description
- * @param int $credentialOwnerType
* @return string
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
*/
- public function generateAndRegisterSSHKeys(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $credentialOwnerType);
+ public function generateAndRegisterSSHKeys(\Airavata\Model\Security\AuthzToken $authzToken, $description);
/**
* Generate and Register Username PWD Pair with Airavata Credential Store.
*
- * @param gatewayId
- * The identifier for the requested Gateway.
- *
- * @param portalUserName
- * The User for which the credential should be registered. For community accounts, this user is the name of the
- * community user name. For computational resources, this user name need not be the same user name on resoruces.
- *
* @param loginUserName
*
* @param password
@@ -297,8 +277,6 @@
*
*
* @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $gatewayId
- * @param string $portalUserName
* @param string $loginUserName
* @param string $password
* @param string $description
@@ -307,147 +285,46 @@
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
*/
- public function registerPwdCredential(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $portalUserName, $loginUserName, $password, $description);
+ public function registerPwdCredential(\Airavata\Model\Security\AuthzToken $authzToken, $loginUserName, $password, $description);
/**
- * Get a Public Key by Providing the Token
- *
- * @param CredStoreToken
- * Credential Store Token which you want to find the Public Key for.
- *
- * @param gatewayId
- * This is the unique identifier of your gateway where the token and public key was generated from.
- *
- * @return publicKey
- *
- *
- *
* @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $airavataCredStoreToken
- * @param string $gatewayId
- * @return string
+ * @param string $tokenId
+ * @return \Airavata\Model\Credential\Store\CredentialSummary
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
*/
- public function getSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId);
+ public function getCredentialSummary(\Airavata\Model\Security\AuthzToken $authzToken, $tokenId);
/**
- *
- * Get all Public Keys of the Gateway
- *
- * @param CredStoreToken
- * Credential Store Token which you want to find the Public Key for.
- *
- * @param gatewayId
- * This is the unique identifier of your gateway where the token and public key was generated from.
- *
- * @return publicKey
- *
- *
- *
- * @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $gatewayId
- * @return array
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function getAllGatewaySSHPubKeys(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId);
- /**
- *
- * Get all Credential summaries for the Gateway
- *
- * @param CredStoreToken
- * Credential Store Token which you want to find the Public Key for.
- *
- * @param credential_store_data_models.SummaryType
- * Summary type : SSH,PASSWD or CERT
- *
- * @param gatewayId
- * This is the unique identifier of your gateway where the token and public key was generated from.
- *
- * @return List of Credential Summary Objects
- *
- *
- *
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param int $type
- * @param string $gatewayId
* @return \Airavata\Model\Credential\Store\CredentialSummary[]
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
*/
- public function getAllCredentialSummaryForGateway(\Airavata\Model\Security\AuthzToken $authzToken, $type, $gatewayId);
+ public function getAllCredentialSummaries(\Airavata\Model\Security\AuthzToken $authzToken, $type);
/**
- *
- * Get all Credential summaries for user in a Gateway
- *
- * @param CredStoreToken
- * Credential Store Token which you want to find the Public Key for.
- *
- * @param credential_store_data_models.SummaryType
- * Summary type : SSH,PASSWD or CERT
- *
- * @param gatewayId
- * This is the unique identifier of your gateway where the token and public key was generated from.
- *
- * @param userId
- * This is the unique identifier of user whose public keys are to be fetched.
- *
- * @return CredentialSummary
- *
- *
- *
- * @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param int $type
- * @param string $gatewayId
- * @param string $userId
- * @return \Airavata\Model\Credential\Store\CredentialSummary[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function getAllCredentialSummaryForUsersInGateway(\Airavata\Model\Security\AuthzToken $authzToken, $type, $gatewayId, $userId);
- /**
- * @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $gatewayId
- * @return array
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function getAllGatewayPWDCredentials(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId);
- /**
- *
- * Delete a Gateway
- *
- * @param gatewayId
- * The gateway Id of the Gateway to be deleted.
- *
- * @return boolean
- * Boolean identifier for the success or failure of the deletion operation.
- *
- *
- *
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $airavataCredStoreToken
- * @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 deleteSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId);
+ public function deleteSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $airavataCredStoreToken
- * @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 deletePWDCredential(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId);
+ public function deletePWDCredential(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken);
/**
*
* Creates a Project with basic metadata.
@@ -1536,6 +1413,26 @@
public function getAllAppModules(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId);
/**
*
+ * Fetch all accessible Application Module Descriptions.
+ *
+ * @param gatewayId
+ * ID of the gateway which need to list all accessible application deployment documentation.
+ *
+ * @return list
+ * Returns the list of all Application Module Objects that are accessible to the user.
+ *
+ *
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $gatewayId
+ * @return \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule[]
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getAccessibleAppModules(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId);
+ /**
+ *
* Delete an Application Module.
*
* @param appModuleId
@@ -1687,6 +1584,29 @@
*/
public function getAllApplicationDeployments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId);
/**
+ *
+ * Fetch all accessible Application Deployment Descriptions.
+ *
+ * @param gatewayId
+ * ID of the gateway which need to list all accessible application deployment documentation.
+ * @param permissionType
+ * ResourcePermissionType to check for this user
+ *
+ * @return list<applicationDeployment.
+ * Returns the list of all application Deployment Objects that are accessible to the user.
+ *
+ *
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $gatewayId
+ * @param int $permissionType
+ * @return \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription[]
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getAccessibleApplicationDeployments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $permissionType);
+ /**
* Fetch a list of Deployed Compute Hosts.
*
* @param appModuleId
@@ -1706,6 +1626,29 @@
*/
public function getAppModuleDeployedResources(\Airavata\Model\Security\AuthzToken $authzToken, $appModuleId);
/**
+ * Fetch a list of Application Deployments that this user can use for executing the given Application Module using the given Group Resource Profile.
+ * The user must have at least READ access to the Group Resource Profile.
+ *
+ * @param appModuleId
+ * The identifier for the Application Module
+ *
+ * @param groupResourceProfileId
+ * The identifier for the Group Resource Profile
+ *
+ * @return list<ApplicationDeploymentDescription>
+ * Returns a list of Application Deployments
+ *
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $appModuleId
+ * @param string $groupResourceProfileId
+ * @return \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription[]
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getApplicationDeploymentsForAppModuleAndGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $appModuleId, $groupResourceProfileId);
+ /**
*
* Register a Application Interface.
*
@@ -3532,6 +3475,28 @@
*/
public function registerUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile $userResourceProfile);
/**
+ * Check if User Resource Profile exists.
+ *
+ * @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 bool
+ *
+ *
+ * @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 isUserResourceProfileExists(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID);
+ /**
* Fetch the given User Resource Profile.
*
* @param userId
@@ -3565,9 +3530,6 @@
*
* identityServerPwdCredToken:
*
- * isNull:
- * Indicates that this instance is just a container for a null value.
- *
*
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
@@ -3980,44 +3942,44 @@
*
*
* @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $workflowTemplateId
- * @return \Airavata\Model\WorkflowModel
+ * @param string $workflowId
+ * @return \Airavata\Model\Workflow\AiravataWorkflow
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function getWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowTemplateId);
+ public function getWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowId);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $workflowTemplateId
+ * @param string $workflowId
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function deleteWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowTemplateId);
+ public function deleteWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowId);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $gatewayId
- * @param \Airavata\Model\WorkflowModel $workflow
+ * @param \Airavata\Model\Workflow\AiravataWorkflow $workflow
* @return string
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function registerWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, \Airavata\Model\WorkflowModel $workflow);
+ public function registerWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, \Airavata\Model\Workflow\AiravataWorkflow $workflow);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $workflowTemplateId
- * @param \Airavata\Model\WorkflowModel $workflow
+ * @param string $workflowId
+ * @param \Airavata\Model\Workflow\AiravataWorkflow $workflow
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function updateWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowTemplateId, \Airavata\Model\WorkflowModel $workflow);
+ public function updateWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowId, \Airavata\Model\Workflow\AiravataWorkflow $workflow);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $workflowName
@@ -4027,7 +3989,7 @@
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function getWorkflowTemplateId(\Airavata\Model\Security\AuthzToken $authzToken, $workflowName);
+ public function getWorkflowId(\Airavata\Model\Security\AuthzToken $authzToken, $workflowName);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $workflowName
@@ -4097,7 +4059,6 @@
*
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $resourceId
- * @param int $resourceType
* @param array $userPermissionList
* @return bool
* @throws \Airavata\API\Error\InvalidRequestException
@@ -4105,11 +4066,21 @@
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function shareResourceWithUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $resourceType, array $userPermissionList);
+ public function shareResourceWithUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $userPermissionList);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $resourceId
- * @param int $resourceType
+ * @param array $groupPermissionList
+ * @return bool
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function shareResourceWithGroups(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $groupPermissionList);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $resourceId
* @param array $userPermissionList
* @return bool
* @throws \Airavata\API\Error\InvalidRequestException
@@ -4117,11 +4088,21 @@
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function revokeSharingOfResourceFromUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $resourceType, array $userPermissionList);
+ public function revokeSharingOfResourceFromUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $userPermissionList);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $resourceId
- * @param int $resourceType
+ * @param array $groupPermissionList
+ * @return bool
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function revokeSharingOfResourceFromGroups(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $groupPermissionList);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $resourceId
* @param int $permissionType
* @return string[]
* @throws \Airavata\API\Error\InvalidRequestException
@@ -4129,60 +4110,203 @@
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function getAllAccessibleUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $resourceType, $permissionType);
+ public function getAllAccessibleUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $permissionType);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param \Airavata\Model\Group\GroupModel $groupModel
+ * @param string $resourceId
+ * @param int $permissionType
+ * @return string[]
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getAllAccessibleGroups(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $permissionType);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $resourceId
+ * @param int $permissionType
+ * @return bool
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function userHasAccess(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $permissionType);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile $groupResourceProfile
* @return string
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function createGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel);
+ public function createGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile $groupResourceProfile);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param \Airavata\Model\Group\GroupModel $groupModel
+ * @param \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile $groupResourceProfile
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function updateGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile $groupResourceProfile);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupResourceProfileId
+ * @return \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile Group Resource Profile
+ *
+ * gatewayID:
+ * Unique identifier for the gateway assigned by Airavata. Corelate this to Airavata Admin API Gateway Registration.
+ *
+ * groupResourceProfileId:
+ *
+ * computeResourcePreferences:
+ * List of resource preferences for each of the registered compute resources.
+ *
+ * computeResourcePolicies:
+ * List of enforced policies for each of the registered compute resources.
+ *
+ * batchQueueResourcePolicies:
+ * List of enforced policies on registered batch queues
+ *
+ * defaultCredentialStoreToken:
+ * The default credential store token to use for compute resources that don't specify a resource specific credential store token.
+ *
+ *
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupResourceProfileId
* @return bool
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function updateGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel);
+ public function removeGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $groupId
- * @param string $ownerId
+ * @param string $gatewayId
+ * @return \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile[]
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getGroupResourceList(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $computeResourceId
+ * @param string $groupResourceProfileId
* @return bool
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId);
+ public function removeGroupComputePrefs(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $groupResourceProfileId);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $groupId
- * @return \Airavata\Model\Group\GroupModel
+ * @param string $resourcePolicyId
+ * @return bool
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function getGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId);
+ public function removeGroupComputeResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $userName
- * @return \Airavata\Model\Group\GroupModel[]
+ * @param string $resourcePolicyId
+ * @return bool
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName);
+ public function removeGroupBatchQueueResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $computeResourceId
+ * @param string $groupResourceProfileId
+ * @return \Airavata\Model\AppCatalog\GroupResourceProfile\GroupComputeResourcePreference
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getGroupComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $groupResourceProfileId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $resourcePolicyId
+ * @return \Airavata\Model\AppCatalog\GroupResourceProfile\ComputeResourcePolicy
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getGroupComputeResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $resourcePolicyId
+ * @return \Airavata\Model\AppCatalog\GroupResourceProfile\BatchQueueResourcePolicy
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getBatchQueueResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupResourceProfileId
+ * @return \Airavata\Model\AppCatalog\GroupResourceProfile\GroupComputeResourcePreference[]
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getGroupComputeResourcePrefList(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupResourceProfileId
+ * @return \Airavata\Model\AppCatalog\GroupResourceProfile\BatchQueueResourcePolicy[]
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getGroupBatchQueueResourcePolicyList(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupResourceProfileId
+ * @return \Airavata\Model\AppCatalog\GroupResourceProfile\ComputeResourcePolicy[]
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getGroupComputeResourcePolicyList(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId);
+ /**
+ * GatewayGroups API methods
+ *
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @return \Airavata\Model\AppCatalog\GatewayGroups\GatewayGroups
+ * @throws \Airavata\API\Error\InvalidRequestException
+ * @throws \Airavata\API\Error\AiravataClientException
+ * @throws \Airavata\API\Error\AiravataSystemException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getGatewayGroups(\Airavata\Model\Security\AuthzToken $authzToken);
}
+
class AiravataClient implements \Airavata\API\AiravataIf {
protected $input_ = null;
protected $output_ = null;
@@ -5092,20 +5216,17 @@
throw new \Exception("getAllNotifications failed: unknown result");
}
- public function generateAndRegisterSSHKeys(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $credentialOwnerType)
+ public function generateAndRegisterSSHKeys(\Airavata\Model\Security\AuthzToken $authzToken, $description)
{
- $this->send_generateAndRegisterSSHKeys($authzToken, $gatewayId, $userName, $description, $credentialOwnerType);
+ $this->send_generateAndRegisterSSHKeys($authzToken, $description);
return $this->recv_generateAndRegisterSSHKeys();
}
- public function send_generateAndRegisterSSHKeys(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $credentialOwnerType)
+ public function send_generateAndRegisterSSHKeys(\Airavata\Model\Security\AuthzToken $authzToken, $description)
{
$args = new \Airavata\API\Airavata_generateAndRegisterSSHKeys_args();
$args->authzToken = $authzToken;
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
$args->description = $description;
- $args->credentialOwnerType = $credentialOwnerType;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -5156,18 +5277,16 @@
throw new \Exception("generateAndRegisterSSHKeys failed: unknown result");
}
- public function registerPwdCredential(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $portalUserName, $loginUserName, $password, $description)
+ public function registerPwdCredential(\Airavata\Model\Security\AuthzToken $authzToken, $loginUserName, $password, $description)
{
- $this->send_registerPwdCredential($authzToken, $gatewayId, $portalUserName, $loginUserName, $password, $description);
+ $this->send_registerPwdCredential($authzToken, $loginUserName, $password, $description);
return $this->recv_registerPwdCredential();
}
- public function send_registerPwdCredential(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $portalUserName, $loginUserName, $password, $description)
+ public function send_registerPwdCredential(\Airavata\Model\Security\AuthzToken $authzToken, $loginUserName, $password, $description)
{
$args = new \Airavata\API\Airavata_registerPwdCredential_args();
$args->authzToken = $authzToken;
- $args->gatewayId = $gatewayId;
- $args->portalUserName = $portalUserName;
$args->loginUserName = $loginUserName;
$args->password = $password;
$args->description = $description;
@@ -5221,36 +5340,35 @@
throw new \Exception("registerPwdCredential failed: unknown result");
}
- public function getSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId)
+ public function getCredentialSummary(\Airavata\Model\Security\AuthzToken $authzToken, $tokenId)
{
- $this->send_getSSHPubKey($authzToken, $airavataCredStoreToken, $gatewayId);
- return $this->recv_getSSHPubKey();
+ $this->send_getCredentialSummary($authzToken, $tokenId);
+ return $this->recv_getCredentialSummary();
}
- public function send_getSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId)
+ public function send_getCredentialSummary(\Airavata\Model\Security\AuthzToken $authzToken, $tokenId)
{
- $args = new \Airavata\API\Airavata_getSSHPubKey_args();
+ $args = new \Airavata\API\Airavata_getCredentialSummary_args();
$args->authzToken = $authzToken;
- $args->airavataCredStoreToken = $airavataCredStoreToken;
- $args->gatewayId = $gatewayId;
+ $args->tokenId = $tokenId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getSSHPubKey', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getCredentialSummary', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getSSHPubKey', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getCredentialSummary', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getSSHPubKey()
+ public function recv_getCredentialSummary()
{
$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_getSSHPubKey_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getCredentialSummary_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -5264,7 +5382,7 @@
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getSSHPubKey_result();
+ $result = new \Airavata\API\Airavata_getCredentialSummary_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -5280,100 +5398,41 @@
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("getSSHPubKey failed: unknown result");
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("getCredentialSummary failed: unknown result");
}
- public function getAllGatewaySSHPubKeys(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId)
+ public function getAllCredentialSummaries(\Airavata\Model\Security\AuthzToken $authzToken, $type)
{
- $this->send_getAllGatewaySSHPubKeys($authzToken, $gatewayId);
- return $this->recv_getAllGatewaySSHPubKeys();
+ $this->send_getAllCredentialSummaries($authzToken, $type);
+ return $this->recv_getAllCredentialSummaries();
}
- public function send_getAllGatewaySSHPubKeys(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId)
+ public function send_getAllCredentialSummaries(\Airavata\Model\Security\AuthzToken $authzToken, $type)
{
- $args = new \Airavata\API\Airavata_getAllGatewaySSHPubKeys_args();
- $args->authzToken = $authzToken;
- $args->gatewayId = $gatewayId;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'getAllGatewaySSHPubKeys', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('getAllGatewaySSHPubKeys', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_getAllGatewaySSHPubKeys()
- {
- $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_getAllGatewaySSHPubKeys_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_getAllGatewaySSHPubKeys_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("getAllGatewaySSHPubKeys failed: unknown result");
- }
-
- public function getAllCredentialSummaryForGateway(\Airavata\Model\Security\AuthzToken $authzToken, $type, $gatewayId)
- {
- $this->send_getAllCredentialSummaryForGateway($authzToken, $type, $gatewayId);
- return $this->recv_getAllCredentialSummaryForGateway();
- }
-
- public function send_getAllCredentialSummaryForGateway(\Airavata\Model\Security\AuthzToken $authzToken, $type, $gatewayId)
- {
- $args = new \Airavata\API\Airavata_getAllCredentialSummaryForGateway_args();
+ $args = new \Airavata\API\Airavata_getAllCredentialSummaries_args();
$args->authzToken = $authzToken;
$args->type = $type;
- $args->gatewayId = $gatewayId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getAllCredentialSummaryForGateway', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getAllCredentialSummaries', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getAllCredentialSummaryForGateway', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getAllCredentialSummaries', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getAllCredentialSummaryForGateway()
+ public function recv_getAllCredentialSummaries()
{
$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_getAllCredentialSummaryForGateway_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllCredentialSummaries_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -5387,7 +5446,7 @@
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getAllCredentialSummaryForGateway_result();
+ $result = new \Airavata\API\Airavata_getAllCredentialSummaries_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -5403,145 +5462,20 @@
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("getAllCredentialSummaryForGateway failed: unknown result");
+ throw new \Exception("getAllCredentialSummaries failed: unknown result");
}
- public function getAllCredentialSummaryForUsersInGateway(\Airavata\Model\Security\AuthzToken $authzToken, $type, $gatewayId, $userId)
+ public function deleteSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken)
{
- $this->send_getAllCredentialSummaryForUsersInGateway($authzToken, $type, $gatewayId, $userId);
- return $this->recv_getAllCredentialSummaryForUsersInGateway();
- }
-
- public function send_getAllCredentialSummaryForUsersInGateway(\Airavata\Model\Security\AuthzToken $authzToken, $type, $gatewayId, $userId)
- {
- $args = new \Airavata\API\Airavata_getAllCredentialSummaryForUsersInGateway_args();
- $args->authzToken = $authzToken;
- $args->type = $type;
- $args->gatewayId = $gatewayId;
- $args->userId = $userId;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'getAllCredentialSummaryForUsersInGateway', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('getAllCredentialSummaryForUsersInGateway', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_getAllCredentialSummaryForUsersInGateway()
- {
- $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_getAllCredentialSummaryForUsersInGateway_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_getAllCredentialSummaryForUsersInGateway_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("getAllCredentialSummaryForUsersInGateway failed: unknown result");
- }
-
- public function getAllGatewayPWDCredentials(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId)
- {
- $this->send_getAllGatewayPWDCredentials($authzToken, $gatewayId);
- return $this->recv_getAllGatewayPWDCredentials();
- }
-
- public function send_getAllGatewayPWDCredentials(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId)
- {
- $args = new \Airavata\API\Airavata_getAllGatewayPWDCredentials_args();
- $args->authzToken = $authzToken;
- $args->gatewayId = $gatewayId;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'getAllGatewayPWDCredentials', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('getAllGatewayPWDCredentials', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_getAllGatewayPWDCredentials()
- {
- $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_getAllGatewayPWDCredentials_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_getAllGatewayPWDCredentials_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("getAllGatewayPWDCredentials failed: unknown result");
- }
-
- public function deleteSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId)
- {
- $this->send_deleteSSHPubKey($authzToken, $airavataCredStoreToken, $gatewayId);
+ $this->send_deleteSSHPubKey($authzToken, $airavataCredStoreToken);
return $this->recv_deleteSSHPubKey();
}
- public function send_deleteSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId)
+ public function send_deleteSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken)
{
$args = new \Airavata\API\Airavata_deleteSSHPubKey_args();
$args->authzToken = $authzToken;
$args->airavataCredStoreToken = $airavataCredStoreToken;
- $args->gatewayId = $gatewayId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -5589,21 +5523,23 @@
if ($result->ase !== null) {
throw $result->ase;
}
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
throw new \Exception("deleteSSHPubKey failed: unknown result");
}
- public function deletePWDCredential(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId)
+ public function deletePWDCredential(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken)
{
- $this->send_deletePWDCredential($authzToken, $airavataCredStoreToken, $gatewayId);
+ $this->send_deletePWDCredential($authzToken, $airavataCredStoreToken);
return $this->recv_deletePWDCredential();
}
- public function send_deletePWDCredential(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId)
+ public function send_deletePWDCredential(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken)
{
$args = new \Airavata\API\Airavata_deletePWDCredential_args();
$args->authzToken = $authzToken;
$args->airavataCredStoreToken = $airavataCredStoreToken;
- $args->gatewayId = $gatewayId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -5651,6 +5587,9 @@
if ($result->ase !== null) {
throw $result->ase;
}
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
throw new \Exception("deletePWDCredential failed: unknown result");
}
@@ -7761,6 +7700,70 @@
throw new \Exception("getAllAppModules failed: unknown result");
}
+ public function getAccessibleAppModules(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId)
+ {
+ $this->send_getAccessibleAppModules($authzToken, $gatewayId);
+ return $this->recv_getAccessibleAppModules();
+ }
+
+ public function send_getAccessibleAppModules(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId)
+ {
+ $args = new \Airavata\API\Airavata_getAccessibleAppModules_args();
+ $args->authzToken = $authzToken;
+ $args->gatewayId = $gatewayId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getAccessibleAppModules', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getAccessibleAppModules', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getAccessibleAppModules()
+ {
+ $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_getAccessibleAppModules_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_getAccessibleAppModules_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("getAccessibleAppModules failed: unknown result");
+ }
+
public function deleteApplicationModule(\Airavata\Model\Security\AuthzToken $authzToken, $appModuleId)
{
$this->send_deleteApplicationModule($authzToken, $appModuleId);
@@ -8147,6 +8150,71 @@
throw new \Exception("getAllApplicationDeployments failed: unknown result");
}
+ public function getAccessibleApplicationDeployments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $permissionType)
+ {
+ $this->send_getAccessibleApplicationDeployments($authzToken, $gatewayId, $permissionType);
+ return $this->recv_getAccessibleApplicationDeployments();
+ }
+
+ public function send_getAccessibleApplicationDeployments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $permissionType)
+ {
+ $args = new \Airavata\API\Airavata_getAccessibleApplicationDeployments_args();
+ $args->authzToken = $authzToken;
+ $args->gatewayId = $gatewayId;
+ $args->permissionType = $permissionType;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getAccessibleApplicationDeployments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getAccessibleApplicationDeployments', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getAccessibleApplicationDeployments()
+ {
+ $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_getAccessibleApplicationDeployments_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_getAccessibleApplicationDeployments_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("getAccessibleApplicationDeployments failed: unknown result");
+ }
+
public function getAppModuleDeployedResources(\Airavata\Model\Security\AuthzToken $authzToken, $appModuleId)
{
$this->send_getAppModuleDeployedResources($authzToken, $appModuleId);
@@ -8211,6 +8279,71 @@
throw new \Exception("getAppModuleDeployedResources failed: unknown result");
}
+ public function getApplicationDeploymentsForAppModuleAndGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $appModuleId, $groupResourceProfileId)
+ {
+ $this->send_getApplicationDeploymentsForAppModuleAndGroupResourceProfile($authzToken, $appModuleId, $groupResourceProfileId);
+ return $this->recv_getApplicationDeploymentsForAppModuleAndGroupResourceProfile();
+ }
+
+ public function send_getApplicationDeploymentsForAppModuleAndGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $appModuleId, $groupResourceProfileId)
+ {
+ $args = new \Airavata\API\Airavata_getApplicationDeploymentsForAppModuleAndGroupResourceProfile_args();
+ $args->authzToken = $authzToken;
+ $args->appModuleId = $appModuleId;
+ $args->groupResourceProfileId = $groupResourceProfileId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getApplicationDeploymentsForAppModuleAndGroupResourceProfile', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getApplicationDeploymentsForAppModuleAndGroupResourceProfile', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getApplicationDeploymentsForAppModuleAndGroupResourceProfile()
+ {
+ $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_getApplicationDeploymentsForAppModuleAndGroupResourceProfile_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_getApplicationDeploymentsForAppModuleAndGroupResourceProfile_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("getApplicationDeploymentsForAppModuleAndGroupResourceProfile failed: unknown result");
+ }
+
public function registerApplicationInterface(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, \Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription $applicationInterface)
{
$this->send_registerApplicationInterface($authzToken, $gatewayId, $applicationInterface);
@@ -13131,6 +13264,71 @@
throw new \Exception("registerUserResourceProfile failed: unknown result");
}
+ public function isUserResourceProfileExists(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID)
+ {
+ $this->send_isUserResourceProfileExists($authzToken, $userId, $gatewayID);
+ return $this->recv_isUserResourceProfileExists();
+ }
+
+ public function send_isUserResourceProfileExists(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID)
+ {
+ $args = new \Airavata\API\Airavata_isUserResourceProfileExists_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_, 'isUserResourceProfileExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isUserResourceProfileExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isUserResourceProfileExists()
+ {
+ $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_isUserResourceProfileExists_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_isUserResourceProfileExists_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("isUserResourceProfileExists failed: unknown result");
+ }
+
public function getUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID)
{
$this->send_getUserResourceProfile($authzToken, $userId, $gatewayID);
@@ -14179,17 +14377,17 @@
throw new \Exception("getLatestQueueStatuses failed: unknown result");
}
- public function getWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowTemplateId)
+ public function getWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowId)
{
- $this->send_getWorkflow($authzToken, $workflowTemplateId);
+ $this->send_getWorkflow($authzToken, $workflowId);
return $this->recv_getWorkflow();
}
- public function send_getWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowTemplateId)
+ public function send_getWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowId)
{
$args = new \Airavata\API\Airavata_getWorkflow_args();
$args->authzToken = $authzToken;
- $args->workflowTemplateId = $workflowTemplateId;
+ $args->workflowId = $workflowId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -14243,17 +14441,17 @@
throw new \Exception("getWorkflow failed: unknown result");
}
- public function deleteWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowTemplateId)
+ public function deleteWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowId)
{
- $this->send_deleteWorkflow($authzToken, $workflowTemplateId);
+ $this->send_deleteWorkflow($authzToken, $workflowId);
$this->recv_deleteWorkflow();
}
- public function send_deleteWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowTemplateId)
+ public function send_deleteWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowId)
{
$args = new \Airavata\API\Airavata_deleteWorkflow_args();
$args->authzToken = $authzToken;
- $args->workflowTemplateId = $workflowTemplateId;
+ $args->workflowId = $workflowId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -14304,13 +14502,13 @@
return;
}
- public function registerWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, \Airavata\Model\WorkflowModel $workflow)
+ public function registerWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, \Airavata\Model\Workflow\AiravataWorkflow $workflow)
{
$this->send_registerWorkflow($authzToken, $gatewayId, $workflow);
return $this->recv_registerWorkflow();
}
- public function send_registerWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, \Airavata\Model\WorkflowModel $workflow)
+ public function send_registerWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, \Airavata\Model\Workflow\AiravataWorkflow $workflow)
{
$args = new \Airavata\API\Airavata_registerWorkflow_args();
$args->authzToken = $authzToken;
@@ -14369,17 +14567,17 @@
throw new \Exception("registerWorkflow failed: unknown result");
}
- public function updateWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowTemplateId, \Airavata\Model\WorkflowModel $workflow)
+ public function updateWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowId, \Airavata\Model\Workflow\AiravataWorkflow $workflow)
{
- $this->send_updateWorkflow($authzToken, $workflowTemplateId, $workflow);
+ $this->send_updateWorkflow($authzToken, $workflowId, $workflow);
$this->recv_updateWorkflow();
}
- public function send_updateWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowTemplateId, \Airavata\Model\WorkflowModel $workflow)
+ public function send_updateWorkflow(\Airavata\Model\Security\AuthzToken $authzToken, $workflowId, \Airavata\Model\Workflow\AiravataWorkflow $workflow)
{
$args = new \Airavata\API\Airavata_updateWorkflow_args();
$args->authzToken = $authzToken;
- $args->workflowTemplateId = $workflowTemplateId;
+ $args->workflowId = $workflowId;
$args->workflow = $workflow;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
@@ -14431,35 +14629,35 @@
return;
}
- public function getWorkflowTemplateId(\Airavata\Model\Security\AuthzToken $authzToken, $workflowName)
+ public function getWorkflowId(\Airavata\Model\Security\AuthzToken $authzToken, $workflowName)
{
- $this->send_getWorkflowTemplateId($authzToken, $workflowName);
- return $this->recv_getWorkflowTemplateId();
+ $this->send_getWorkflowId($authzToken, $workflowName);
+ return $this->recv_getWorkflowId();
}
- public function send_getWorkflowTemplateId(\Airavata\Model\Security\AuthzToken $authzToken, $workflowName)
+ public function send_getWorkflowId(\Airavata\Model\Security\AuthzToken $authzToken, $workflowName)
{
- $args = new \Airavata\API\Airavata_getWorkflowTemplateId_args();
+ $args = new \Airavata\API\Airavata_getWorkflowId_args();
$args->authzToken = $authzToken;
$args->workflowName = $workflowName;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getWorkflowTemplateId', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getWorkflowId', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getWorkflowTemplateId', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getWorkflowId', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getWorkflowTemplateId()
+ public function recv_getWorkflowId()
{
$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_getWorkflowTemplateId_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getWorkflowId_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -14473,7 +14671,7 @@
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getWorkflowTemplateId_result();
+ $result = new \Airavata\API\Airavata_getWorkflowId_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -14492,7 +14690,7 @@
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("getWorkflowTemplateId failed: unknown result");
+ throw new \Exception("getWorkflowId failed: unknown result");
}
public function isWorkflowExistWithName(\Airavata\Model\Security\AuthzToken $authzToken, $workflowName)
@@ -14879,18 +15077,17 @@
throw new \Exception("getChildDataProducts failed: unknown result");
}
- public function shareResourceWithUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $resourceType, array $userPermissionList)
+ public function shareResourceWithUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $userPermissionList)
{
- $this->send_shareResourceWithUsers($authzToken, $resourceId, $resourceType, $userPermissionList);
+ $this->send_shareResourceWithUsers($authzToken, $resourceId, $userPermissionList);
return $this->recv_shareResourceWithUsers();
}
- public function send_shareResourceWithUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $resourceType, array $userPermissionList)
+ public function send_shareResourceWithUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $userPermissionList)
{
$args = new \Airavata\API\Airavata_shareResourceWithUsers_args();
$args->authzToken = $authzToken;
$args->resourceId = $resourceId;
- $args->resourceType = $resourceType;
$args->userPermissionList = $userPermissionList;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
@@ -14945,18 +15142,82 @@
throw new \Exception("shareResourceWithUsers failed: unknown result");
}
- public function revokeSharingOfResourceFromUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $resourceType, array $userPermissionList)
+ public function shareResourceWithGroups(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $groupPermissionList)
{
- $this->send_revokeSharingOfResourceFromUsers($authzToken, $resourceId, $resourceType, $userPermissionList);
+ $this->send_shareResourceWithGroups($authzToken, $resourceId, $groupPermissionList);
+ return $this->recv_shareResourceWithGroups();
+ }
+
+ public function send_shareResourceWithGroups(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $groupPermissionList)
+ {
+ $args = new \Airavata\API\Airavata_shareResourceWithGroups_args();
+ $args->authzToken = $authzToken;
+ $args->resourceId = $resourceId;
+ $args->groupPermissionList = $groupPermissionList;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'shareResourceWithGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('shareResourceWithGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_shareResourceWithGroups()
+ {
+ $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_shareResourceWithGroups_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_shareResourceWithGroups_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("shareResourceWithGroups failed: unknown result");
+ }
+
+ public function revokeSharingOfResourceFromUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $userPermissionList)
+ {
+ $this->send_revokeSharingOfResourceFromUsers($authzToken, $resourceId, $userPermissionList);
return $this->recv_revokeSharingOfResourceFromUsers();
}
- public function send_revokeSharingOfResourceFromUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $resourceType, array $userPermissionList)
+ public function send_revokeSharingOfResourceFromUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $userPermissionList)
{
$args = new \Airavata\API\Airavata_revokeSharingOfResourceFromUsers_args();
$args->authzToken = $authzToken;
$args->resourceId = $resourceId;
- $args->resourceType = $resourceType;
$args->userPermissionList = $userPermissionList;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
@@ -15011,18 +15272,82 @@
throw new \Exception("revokeSharingOfResourceFromUsers failed: unknown result");
}
- public function getAllAccessibleUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $resourceType, $permissionType)
+ public function revokeSharingOfResourceFromGroups(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $groupPermissionList)
{
- $this->send_getAllAccessibleUsers($authzToken, $resourceId, $resourceType, $permissionType);
+ $this->send_revokeSharingOfResourceFromGroups($authzToken, $resourceId, $groupPermissionList);
+ return $this->recv_revokeSharingOfResourceFromGroups();
+ }
+
+ public function send_revokeSharingOfResourceFromGroups(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, array $groupPermissionList)
+ {
+ $args = new \Airavata\API\Airavata_revokeSharingOfResourceFromGroups_args();
+ $args->authzToken = $authzToken;
+ $args->resourceId = $resourceId;
+ $args->groupPermissionList = $groupPermissionList;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'revokeSharingOfResourceFromGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('revokeSharingOfResourceFromGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_revokeSharingOfResourceFromGroups()
+ {
+ $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_revokeSharingOfResourceFromGroups_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_revokeSharingOfResourceFromGroups_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("revokeSharingOfResourceFromGroups failed: unknown result");
+ }
+
+ public function getAllAccessibleUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $permissionType)
+ {
+ $this->send_getAllAccessibleUsers($authzToken, $resourceId, $permissionType);
return $this->recv_getAllAccessibleUsers();
}
- public function send_getAllAccessibleUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $resourceType, $permissionType)
+ public function send_getAllAccessibleUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $permissionType)
{
$args = new \Airavata\API\Airavata_getAllAccessibleUsers_args();
$args->authzToken = $authzToken;
$args->resourceId = $resourceId;
- $args->resourceType = $resourceType;
$args->permissionType = $permissionType;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
@@ -15077,35 +15402,36 @@
throw new \Exception("getAllAccessibleUsers failed: unknown result");
}
- public function createGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
+ public function getAllAccessibleGroups(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $permissionType)
{
- $this->send_createGroup($authzToken, $groupModel);
- return $this->recv_createGroup();
+ $this->send_getAllAccessibleGroups($authzToken, $resourceId, $permissionType);
+ return $this->recv_getAllAccessibleGroups();
}
- public function send_createGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
+ public function send_getAllAccessibleGroups(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $permissionType)
{
- $args = new \Airavata\API\Airavata_createGroup_args();
+ $args = new \Airavata\API\Airavata_getAllAccessibleGroups_args();
$args->authzToken = $authzToken;
- $args->groupModel = $groupModel;
+ $args->resourceId = $resourceId;
+ $args->permissionType = $permissionType;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'createGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getAllAccessibleGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('createGroup', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getAllAccessibleGroups', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_createGroup()
+ public function recv_getAllAccessibleGroups()
{
$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_createGroup_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllAccessibleGroups_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -15119,7 +15445,7 @@
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_createGroup_result();
+ $result = new \Airavata\API\Airavata_getAllAccessibleGroups_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -15138,38 +15464,39 @@
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("createGroup failed: unknown result");
+ throw new \Exception("getAllAccessibleGroups failed: unknown result");
}
- public function updateGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
+ public function userHasAccess(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $permissionType)
{
- $this->send_updateGroup($authzToken, $groupModel);
- return $this->recv_updateGroup();
+ $this->send_userHasAccess($authzToken, $resourceId, $permissionType);
+ return $this->recv_userHasAccess();
}
- public function send_updateGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
+ public function send_userHasAccess(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $permissionType)
{
- $args = new \Airavata\API\Airavata_updateGroup_args();
+ $args = new \Airavata\API\Airavata_userHasAccess_args();
$args->authzToken = $authzToken;
- $args->groupModel = $groupModel;
+ $args->resourceId = $resourceId;
+ $args->permissionType = $permissionType;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'updateGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'userHasAccess', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('updateGroup', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('userHasAccess', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_updateGroup()
+ public function recv_userHasAccess()
{
$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_updateGroup_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_userHasAccess_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -15183,7 +15510,7 @@
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_updateGroup_result();
+ $result = new \Airavata\API\Airavata_userHasAccess_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -15202,39 +15529,38 @@
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("updateGroup failed: unknown result");
+ throw new \Exception("userHasAccess failed: unknown result");
}
- public function deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
+ public function createGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile $groupResourceProfile)
{
- $this->send_deleteGroup($authzToken, $groupId, $ownerId);
- return $this->recv_deleteGroup();
+ $this->send_createGroupResourceProfile($authzToken, $groupResourceProfile);
+ return $this->recv_createGroupResourceProfile();
}
- public function send_deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
+ public function send_createGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile $groupResourceProfile)
{
- $args = new \Airavata\API\Airavata_deleteGroup_args();
+ $args = new \Airavata\API\Airavata_createGroupResourceProfile_args();
$args->authzToken = $authzToken;
- $args->groupId = $groupId;
- $args->ownerId = $ownerId;
+ $args->groupResourceProfile = $groupResourceProfile;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'deleteGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'createGroupResourceProfile', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('deleteGroup', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('createGroupResourceProfile', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_deleteGroup()
+ public function recv_createGroupResourceProfile()
{
$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_deleteGroup_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_createGroupResourceProfile_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -15248,7 +15574,7 @@
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_deleteGroup_result();
+ $result = new \Airavata\API\Airavata_createGroupResourceProfile_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -15267,38 +15593,38 @@
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("deleteGroup failed: unknown result");
+ throw new \Exception("createGroupResourceProfile failed: unknown result");
}
- public function getGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId)
+ public function updateGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile $groupResourceProfile)
{
- $this->send_getGroup($authzToken, $groupId);
- return $this->recv_getGroup();
+ $this->send_updateGroupResourceProfile($authzToken, $groupResourceProfile);
+ $this->recv_updateGroupResourceProfile();
}
- public function send_getGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId)
+ public function send_updateGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile $groupResourceProfile)
{
- $args = new \Airavata\API\Airavata_getGroup_args();
+ $args = new \Airavata\API\Airavata_updateGroupResourceProfile_args();
$args->authzToken = $authzToken;
- $args->groupId = $groupId;
+ $args->groupResourceProfile = $groupResourceProfile;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'updateGroupResourceProfile', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getGroup', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('updateGroupResourceProfile', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getGroup()
+ public function recv_updateGroupResourceProfile()
{
$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_getGroup_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_updateGroupResourceProfile_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -15312,7 +15638,68 @@
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getGroup_result();
+ $result = new \Airavata\API\Airavata_updateGroupResourceProfile_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ 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;
+ }
+ return;
+ }
+
+ public function getGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId)
+ {
+ $this->send_getGroupResourceProfile($authzToken, $groupResourceProfileId);
+ return $this->recv_getGroupResourceProfile();
+ }
+
+ public function send_getGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId)
+ {
+ $args = new \Airavata\API\Airavata_getGroupResourceProfile_args();
+ $args->authzToken = $authzToken;
+ $args->groupResourceProfileId = $groupResourceProfileId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroupResourceProfile', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroupResourceProfile', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroupResourceProfile()
+ {
+ $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_getGroupResourceProfile_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_getGroupResourceProfile_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -15331,38 +15718,38 @@
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("getGroup failed: unknown result");
+ throw new \Exception("getGroupResourceProfile failed: unknown result");
}
- public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName)
+ public function removeGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId)
{
- $this->send_getAllGroupsUserBelongs($authzToken, $userName);
- return $this->recv_getAllGroupsUserBelongs();
+ $this->send_removeGroupResourceProfile($authzToken, $groupResourceProfileId);
+ return $this->recv_removeGroupResourceProfile();
}
- public function send_getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName)
+ public function send_removeGroupResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId)
{
- $args = new \Airavata\API\Airavata_getAllGroupsUserBelongs_args();
+ $args = new \Airavata\API\Airavata_removeGroupResourceProfile_args();
$args->authzToken = $authzToken;
- $args->userName = $userName;
+ $args->groupResourceProfileId = $groupResourceProfileId;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getAllGroupsUserBelongs', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'removeGroupResourceProfile', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getAllGroupsUserBelongs', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('removeGroupResourceProfile', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getAllGroupsUserBelongs()
+ public function recv_removeGroupResourceProfile()
{
$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_getAllGroupsUserBelongs_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_removeGroupResourceProfile_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -15376,7 +15763,7 @@
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getAllGroupsUserBelongs_result();
+ $result = new \Airavata\API\Airavata_removeGroupResourceProfile_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -15395,11 +15782,717 @@
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("getAllGroupsUserBelongs failed: unknown result");
+ throw new \Exception("removeGroupResourceProfile failed: unknown result");
+ }
+
+ public function getGroupResourceList(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId)
+ {
+ $this->send_getGroupResourceList($authzToken, $gatewayId);
+ return $this->recv_getGroupResourceList();
+ }
+
+ public function send_getGroupResourceList(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId)
+ {
+ $args = new \Airavata\API\Airavata_getGroupResourceList_args();
+ $args->authzToken = $authzToken;
+ $args->gatewayId = $gatewayId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroupResourceList', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroupResourceList', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroupResourceList()
+ {
+ $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_getGroupResourceList_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_getGroupResourceList_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("getGroupResourceList failed: unknown result");
+ }
+
+ public function removeGroupComputePrefs(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $groupResourceProfileId)
+ {
+ $this->send_removeGroupComputePrefs($authzToken, $computeResourceId, $groupResourceProfileId);
+ return $this->recv_removeGroupComputePrefs();
+ }
+
+ public function send_removeGroupComputePrefs(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $groupResourceProfileId)
+ {
+ $args = new \Airavata\API\Airavata_removeGroupComputePrefs_args();
+ $args->authzToken = $authzToken;
+ $args->computeResourceId = $computeResourceId;
+ $args->groupResourceProfileId = $groupResourceProfileId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'removeGroupComputePrefs', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('removeGroupComputePrefs', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_removeGroupComputePrefs()
+ {
+ $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_removeGroupComputePrefs_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_removeGroupComputePrefs_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("removeGroupComputePrefs failed: unknown result");
+ }
+
+ public function removeGroupComputeResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId)
+ {
+ $this->send_removeGroupComputeResourcePolicy($authzToken, $resourcePolicyId);
+ return $this->recv_removeGroupComputeResourcePolicy();
+ }
+
+ public function send_removeGroupComputeResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId)
+ {
+ $args = new \Airavata\API\Airavata_removeGroupComputeResourcePolicy_args();
+ $args->authzToken = $authzToken;
+ $args->resourcePolicyId = $resourcePolicyId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'removeGroupComputeResourcePolicy', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('removeGroupComputeResourcePolicy', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_removeGroupComputeResourcePolicy()
+ {
+ $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_removeGroupComputeResourcePolicy_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_removeGroupComputeResourcePolicy_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("removeGroupComputeResourcePolicy failed: unknown result");
+ }
+
+ public function removeGroupBatchQueueResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId)
+ {
+ $this->send_removeGroupBatchQueueResourcePolicy($authzToken, $resourcePolicyId);
+ return $this->recv_removeGroupBatchQueueResourcePolicy();
+ }
+
+ public function send_removeGroupBatchQueueResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId)
+ {
+ $args = new \Airavata\API\Airavata_removeGroupBatchQueueResourcePolicy_args();
+ $args->authzToken = $authzToken;
+ $args->resourcePolicyId = $resourcePolicyId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'removeGroupBatchQueueResourcePolicy', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('removeGroupBatchQueueResourcePolicy', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_removeGroupBatchQueueResourcePolicy()
+ {
+ $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_removeGroupBatchQueueResourcePolicy_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_removeGroupBatchQueueResourcePolicy_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("removeGroupBatchQueueResourcePolicy failed: unknown result");
+ }
+
+ public function getGroupComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $groupResourceProfileId)
+ {
+ $this->send_getGroupComputeResourcePreference($authzToken, $computeResourceId, $groupResourceProfileId);
+ return $this->recv_getGroupComputeResourcePreference();
+ }
+
+ public function send_getGroupComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $groupResourceProfileId)
+ {
+ $args = new \Airavata\API\Airavata_getGroupComputeResourcePreference_args();
+ $args->authzToken = $authzToken;
+ $args->computeResourceId = $computeResourceId;
+ $args->groupResourceProfileId = $groupResourceProfileId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroupComputeResourcePreference', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroupComputeResourcePreference', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroupComputeResourcePreference()
+ {
+ $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_getGroupComputeResourcePreference_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_getGroupComputeResourcePreference_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("getGroupComputeResourcePreference failed: unknown result");
+ }
+
+ public function getGroupComputeResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId)
+ {
+ $this->send_getGroupComputeResourcePolicy($authzToken, $resourcePolicyId);
+ return $this->recv_getGroupComputeResourcePolicy();
+ }
+
+ public function send_getGroupComputeResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId)
+ {
+ $args = new \Airavata\API\Airavata_getGroupComputeResourcePolicy_args();
+ $args->authzToken = $authzToken;
+ $args->resourcePolicyId = $resourcePolicyId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroupComputeResourcePolicy', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroupComputeResourcePolicy', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroupComputeResourcePolicy()
+ {
+ $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_getGroupComputeResourcePolicy_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_getGroupComputeResourcePolicy_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("getGroupComputeResourcePolicy failed: unknown result");
+ }
+
+ public function getBatchQueueResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId)
+ {
+ $this->send_getBatchQueueResourcePolicy($authzToken, $resourcePolicyId);
+ return $this->recv_getBatchQueueResourcePolicy();
+ }
+
+ public function send_getBatchQueueResourcePolicy(\Airavata\Model\Security\AuthzToken $authzToken, $resourcePolicyId)
+ {
+ $args = new \Airavata\API\Airavata_getBatchQueueResourcePolicy_args();
+ $args->authzToken = $authzToken;
+ $args->resourcePolicyId = $resourcePolicyId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getBatchQueueResourcePolicy', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getBatchQueueResourcePolicy', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getBatchQueueResourcePolicy()
+ {
+ $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_getBatchQueueResourcePolicy_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_getBatchQueueResourcePolicy_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("getBatchQueueResourcePolicy failed: unknown result");
+ }
+
+ public function getGroupComputeResourcePrefList(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId)
+ {
+ $this->send_getGroupComputeResourcePrefList($authzToken, $groupResourceProfileId);
+ return $this->recv_getGroupComputeResourcePrefList();
+ }
+
+ public function send_getGroupComputeResourcePrefList(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId)
+ {
+ $args = new \Airavata\API\Airavata_getGroupComputeResourcePrefList_args();
+ $args->authzToken = $authzToken;
+ $args->groupResourceProfileId = $groupResourceProfileId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroupComputeResourcePrefList', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroupComputeResourcePrefList', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroupComputeResourcePrefList()
+ {
+ $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_getGroupComputeResourcePrefList_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_getGroupComputeResourcePrefList_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("getGroupComputeResourcePrefList failed: unknown result");
+ }
+
+ public function getGroupBatchQueueResourcePolicyList(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId)
+ {
+ $this->send_getGroupBatchQueueResourcePolicyList($authzToken, $groupResourceProfileId);
+ return $this->recv_getGroupBatchQueueResourcePolicyList();
+ }
+
+ public function send_getGroupBatchQueueResourcePolicyList(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId)
+ {
+ $args = new \Airavata\API\Airavata_getGroupBatchQueueResourcePolicyList_args();
+ $args->authzToken = $authzToken;
+ $args->groupResourceProfileId = $groupResourceProfileId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroupBatchQueueResourcePolicyList', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroupBatchQueueResourcePolicyList', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroupBatchQueueResourcePolicyList()
+ {
+ $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_getGroupBatchQueueResourcePolicyList_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_getGroupBatchQueueResourcePolicyList_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("getGroupBatchQueueResourcePolicyList failed: unknown result");
+ }
+
+ public function getGroupComputeResourcePolicyList(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId)
+ {
+ $this->send_getGroupComputeResourcePolicyList($authzToken, $groupResourceProfileId);
+ return $this->recv_getGroupComputeResourcePolicyList();
+ }
+
+ public function send_getGroupComputeResourcePolicyList(\Airavata\Model\Security\AuthzToken $authzToken, $groupResourceProfileId)
+ {
+ $args = new \Airavata\API\Airavata_getGroupComputeResourcePolicyList_args();
+ $args->authzToken = $authzToken;
+ $args->groupResourceProfileId = $groupResourceProfileId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroupComputeResourcePolicyList', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroupComputeResourcePolicyList', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroupComputeResourcePolicyList()
+ {
+ $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_getGroupComputeResourcePolicyList_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_getGroupComputeResourcePolicyList_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("getGroupComputeResourcePolicyList failed: unknown result");
+ }
+
+ public function getGatewayGroups(\Airavata\Model\Security\AuthzToken $authzToken)
+ {
+ $this->send_getGatewayGroups($authzToken);
+ return $this->recv_getGatewayGroups();
+ }
+
+ public function send_getGatewayGroups(\Airavata\Model\Security\AuthzToken $authzToken)
+ {
+ $args = new \Airavata\API\Airavata_getGatewayGroups_args();
+ $args->authzToken = $authzToken;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGatewayGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGatewayGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGatewayGroups()
+ {
+ $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_getGatewayGroups_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_getGatewayGroups_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("getGatewayGroups failed: unknown result");
}
}
+
// HELPER FUNCTIONS AND STRUCTURES
class Airavata_getAPIVersion_args {
@@ -19462,19 +20555,7 @@
/**
* @var string
*/
- public $gatewayId = null;
- /**
- * @var string
- */
- public $userName = null;
- /**
- * @var string
- */
public $description = null;
- /**
- * @var int
- */
- public $credentialOwnerType = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -19484,40 +20565,19 @@
'type' => TType::STRUCT,
'class' => '\Airavata\Model\Security\AuthzToken',
),
- 2 => array(
- 'var' => 'gatewayId',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'userName',
- 'type' => TType::STRING,
- ),
4 => array(
'var' => 'description',
'type' => TType::STRING,
),
- 5 => array(
- 'var' => 'credentialOwnerType',
- '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['description'])) {
$this->description = $vals['description'];
}
- if (isset($vals['credentialOwnerType'])) {
- $this->credentialOwnerType = $vals['credentialOwnerType'];
- }
}
}
@@ -19548,20 +20608,6 @@
$xfer += $input->skip($ftype);
}
break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->gatewayId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->userName);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
case 4:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->description);
@@ -19569,13 +20615,6 @@
$xfer += $input->skip($ftype);
}
break;
- case 5:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->credentialOwnerType);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
default:
$xfer += $input->skip($ftype);
break;
@@ -19597,26 +20636,11 @@
$xfer += $this->authzToken->write($output);
$xfer += $output->writeFieldEnd();
}
- if ($this->gatewayId !== null) {
- $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, 3);
- $xfer += $output->writeString($this->userName);
- $xfer += $output->writeFieldEnd();
- }
if ($this->description !== null) {
$xfer += $output->writeFieldBegin('description', TType::STRING, 4);
$xfer += $output->writeString($this->description);
$xfer += $output->writeFieldEnd();
}
- if ($this->credentialOwnerType !== null) {
- $xfer += $output->writeFieldBegin('credentialOwnerType', TType::I32, 5);
- $xfer += $output->writeI32($this->credentialOwnerType);
- $xfer += $output->writeFieldEnd();
- }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
@@ -19784,14 +20808,6 @@
/**
* @var string
*/
- public $gatewayId = null;
- /**
- * @var string
- */
- public $portalUserName = null;
- /**
- * @var string
- */
public $loginUserName = null;
/**
* @var string
@@ -19810,14 +20826,6 @@
'type' => TType::STRUCT,
'class' => '\Airavata\Model\Security\AuthzToken',
),
- 2 => array(
- 'var' => 'gatewayId',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'portalUserName',
- 'type' => TType::STRING,
- ),
4 => array(
'var' => 'loginUserName',
'type' => TType::STRING,
@@ -19836,12 +20844,6 @@
if (isset($vals['authzToken'])) {
$this->authzToken = $vals['authzToken'];
}
- if (isset($vals['gatewayId'])) {
- $this->gatewayId = $vals['gatewayId'];
- }
- if (isset($vals['portalUserName'])) {
- $this->portalUserName = $vals['portalUserName'];
- }
if (isset($vals['loginUserName'])) {
$this->loginUserName = $vals['loginUserName'];
}
@@ -19881,20 +20883,6 @@
$xfer += $input->skip($ftype);
}
break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->gatewayId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->portalUserName);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
case 4:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->loginUserName);
@@ -19937,16 +20925,6 @@
$xfer += $this->authzToken->write($output);
$xfer += $output->writeFieldEnd();
}
- if ($this->gatewayId !== null) {
- $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2);
- $xfer += $output->writeString($this->gatewayId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->portalUserName !== null) {
- $xfer += $output->writeFieldBegin('portalUserName', TType::STRING, 3);
- $xfer += $output->writeString($this->portalUserName);
- $xfer += $output->writeFieldEnd();
- }
if ($this->loginUserName !== null) {
$xfer += $output->writeFieldBegin('loginUserName', TType::STRING, 4);
$xfer += $output->writeString($this->loginUserName);
@@ -20119,7 +21097,7 @@
}
-class Airavata_getSSHPubKey_args {
+class Airavata_getCredentialSummary_args {
static $_TSPEC;
/**
@@ -20129,11 +21107,7 @@
/**
* @var string
*/
- public $airavataCredStoreToken = null;
- /**
- * @var string
- */
- public $gatewayId = null;
+ public $tokenId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -20144,11 +21118,7 @@
'class' => '\Airavata\Model\Security\AuthzToken',
),
2 => array(
- 'var' => 'airavataCredStoreToken',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'gatewayId',
+ 'var' => 'tokenId',
'type' => TType::STRING,
),
);
@@ -20157,17 +21127,14 @@
if (isset($vals['authzToken'])) {
$this->authzToken = $vals['authzToken'];
}
- if (isset($vals['airavataCredStoreToken'])) {
- $this->airavataCredStoreToken = $vals['airavataCredStoreToken'];
- }
- if (isset($vals['gatewayId'])) {
- $this->gatewayId = $vals['gatewayId'];
+ if (isset($vals['tokenId'])) {
+ $this->tokenId = $vals['tokenId'];
}
}
}
public function getName() {
- return 'Airavata_getSSHPubKey_args';
+ return 'Airavata_getCredentialSummary_args';
}
public function read($input)
@@ -20195,14 +21162,7 @@
break;
case 2:
if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->airavataCredStoreToken);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->gatewayId);
+ $xfer += $input->readString($this->tokenId);
} else {
$xfer += $input->skip($ftype);
}
@@ -20219,7 +21179,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getSSHPubKey_args');
+ $xfer += $output->writeStructBegin('Airavata_getCredentialSummary_args');
if ($this->authzToken !== null) {
if (!is_object($this->authzToken)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -20228,14 +21188,9 @@
$xfer += $this->authzToken->write($output);
$xfer += $output->writeFieldEnd();
}
- if ($this->airavataCredStoreToken !== null) {
- $xfer += $output->writeFieldBegin('airavataCredStoreToken', TType::STRING, 2);
- $xfer += $output->writeString($this->airavataCredStoreToken);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->gatewayId !== null) {
- $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 3);
- $xfer += $output->writeString($this->gatewayId);
+ if ($this->tokenId !== null) {
+ $xfer += $output->writeFieldBegin('tokenId', TType::STRING, 2);
+ $xfer += $output->writeString($this->tokenId);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
@@ -20245,11 +21200,11 @@
}
-class Airavata_getSSHPubKey_result {
+class Airavata_getCredentialSummary_result {
static $_TSPEC;
/**
- * @var string
+ * @var \Airavata\Model\Credential\Store\CredentialSummary
*/
public $success = null;
/**
@@ -20264,13 +21219,18 @@
* @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::STRING,
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Credential\Store\CredentialSummary',
),
1 => array(
'var' => 'ire',
@@ -20287,765 +21247,34 @@
'type' => TType::STRUCT,
'class' => '\Airavata\API\Error\AiravataSystemException',
),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ace'])) {
- $this->ace = $vals['ace'];
- }
- if (isset($vals['ase'])) {
- $this->ase = $vals['ase'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_getSSHPubKey_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 0:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- 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->ace = new \Airavata\API\Error\AiravataClientException();
- $xfer += $this->ace->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->ase = new \Airavata\API\Error\AiravataSystemException();
- $xfer += $this->ase->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_getSSHPubKey_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($this->success);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ace !== null) {
- $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
- $xfer += $this->ace->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ase !== null) {
- $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
- $xfer += $this->ase->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_getAllGatewaySSHPubKeys_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var string
- */
- public $gatewayId = 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,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authzToken'])) {
- $this->authzToken = $vals['authzToken'];
- }
- if (isset($vals['gatewayId'])) {
- $this->gatewayId = $vals['gatewayId'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_getAllGatewaySSHPubKeys_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->gatewayId);
- } 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_getAllGatewaySSHPubKeys_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, 2);
- $xfer += $output->writeString($this->gatewayId);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_getAllGatewaySSHPubKeys_result {
- static $_TSPEC;
-
- /**
- * @var array
- */
- public $success = null;
- /**
- * @var \Airavata\API\Error\InvalidRequestException
- */
- public $ire = null;
- /**
- * @var \Airavata\API\Error\AiravataClientException
- */
- public $ace = null;
- /**
- * @var \Airavata\API\Error\AiravataSystemException
- */
- public $ase = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::MAP,
- 'ktype' => TType::STRING,
- 'vtype' => TType::STRING,
- 'key' => array(
- 'type' => TType::STRING,
- ),
- 'val' => array(
- 'type' => TType::STRING,
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ace',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\AiravataClientException',
- ),
- 3 => array(
- 'var' => 'ase',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\AiravataSystemException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ace'])) {
- $this->ace = $vals['ace'];
- }
- if (isset($vals['ase'])) {
- $this->ase = $vals['ase'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_getAllGatewaySSHPubKeys_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 0:
- if ($ftype == TType::MAP) {
- $this->success = array();
- $_size21 = 0;
- $_ktype22 = 0;
- $_vtype23 = 0;
- $xfer += $input->readMapBegin($_ktype22, $_vtype23, $_size21);
- for ($_i25 = 0; $_i25 < $_size21; ++$_i25)
- {
- $key26 = '';
- $val27 = '';
- $xfer += $input->readString($key26);
- $xfer += $input->readString($val27);
- $this->success[$key26] = $val27;
- }
- $xfer += $input->readMapEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- 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->ace = new \Airavata\API\Error\AiravataClientException();
- $xfer += $this->ace->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->ase = new \Airavata\API\Error\AiravataSystemException();
- $xfer += $this->ase->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_getAllGatewaySSHPubKeys_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::MAP, 0);
- {
- $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success));
- {
- foreach ($this->success as $kiter28 => $viter29)
- {
- $xfer += $output->writeString($kiter28);
- $xfer += $output->writeString($viter29);
- }
- }
- $output->writeMapEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ace !== null) {
- $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
- $xfer += $this->ace->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ase !== null) {
- $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
- $xfer += $this->ase->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_getAllCredentialSummaryForGateway_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var int
- */
- public $type = null;
- /**
- * @var string
- */
- public $gatewayId = 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' => 'type',
- 'type' => TType::I32,
- ),
- 3 => array(
- 'var' => 'gatewayId',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authzToken'])) {
- $this->authzToken = $vals['authzToken'];
- }
- if (isset($vals['type'])) {
- $this->type = $vals['type'];
- }
- if (isset($vals['gatewayId'])) {
- $this->gatewayId = $vals['gatewayId'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_getAllCredentialSummaryForGateway_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::I32) {
- $xfer += $input->readI32($this->type);
- } else {
- $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;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
-
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllCredentialSummaryForGateway_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->type !== null) {
- $xfer += $output->writeFieldBegin('type', TType::I32, 2);
- $xfer += $output->writeI32($this->type);
- $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;
- }
-
-}
-
-class Airavata_getAllCredentialSummaryForGateway_result {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Credential\Store\CredentialSummary[]
- */
- public $success = null;
- /**
- * @var \Airavata\API\Error\InvalidRequestException
- */
- public $ire = null;
- /**
- * @var \Airavata\API\Error\AiravataClientException
- */
- public $ace = null;
- /**
- * @var \Airavata\API\Error\AiravataSystemException
- */
- public $ase = null;
-
- 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\Credential\Store\CredentialSummary',
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ace',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\AiravataClientException',
- ),
- 3 => array(
- 'var' => 'ase',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\AiravataSystemException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ace'])) {
- $this->ace = $vals['ace'];
- }
- if (isset($vals['ase'])) {
- $this->ase = $vals['ase'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_getAllCredentialSummaryForGateway_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 0:
- if ($ftype == TType::LST) {
- $this->success = array();
- $_size30 = 0;
- $_etype33 = 0;
- $xfer += $input->readListBegin($_etype33, $_size30);
- for ($_i34 = 0; $_i34 < $_size30; ++$_i34)
- {
- $elem35 = null;
- $elem35 = new \Airavata\Model\Credential\Store\CredentialSummary();
- $xfer += $elem35->read($input);
- $this->success []= $elem35;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- 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->ace = new \Airavata\API\Error\AiravataClientException();
- $xfer += $this->ace->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->ase = new \Airavata\API\Error\AiravataSystemException();
- $xfer += $this->ase->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_getAllCredentialSummaryForGateway_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 $iter36)
- {
- $xfer += $iter36->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ace !== null) {
- $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
- $xfer += $this->ace->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ase !== null) {
- $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
- $xfer += $this->ase->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_getAllCredentialSummaryForUsersInGateway_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var int
- */
- public $type = null;
- /**
- * @var string
- */
- public $gatewayId = null;
- /**
- * @var string
- */
- public $userId = 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' => 'type',
- 'type' => TType::I32,
- ),
- 3 => array(
- 'var' => 'gatewayId',
- 'type' => TType::STRING,
- ),
4 => array(
- 'var' => 'userId',
- 'type' => TType::STRING,
+ '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['success'])) {
+ $this->success = $vals['success'];
}
- if (isset($vals['type'])) {
- $this->type = $vals['type'];
+ if (isset($vals['ire'])) {
+ $this->ire = $vals['ire'];
}
- if (isset($vals['gatewayId'])) {
- $this->gatewayId = $vals['gatewayId'];
+ if (isset($vals['ace'])) {
+ $this->ace = $vals['ace'];
}
- if (isset($vals['userId'])) {
- $this->userId = $vals['userId'];
+ if (isset($vals['ase'])) {
+ $this->ase = $vals['ase'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
}
}
}
public function getName() {
- return 'Airavata_getAllCredentialSummaryForUsersInGateway_args';
+ return 'Airavata_getCredentialSummary_result';
}
public function read($input)
@@ -21063,31 +21292,42 @@
}
switch ($fid)
{
+ case 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\Credential\Store\CredentialSummary();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
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::I32) {
- $xfer += $input->readI32($this->type);
+ if ($ftype == TType::STRUCT) {
+ $this->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->gatewayId);
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 4:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->userId);
+ if ($ftype == TType::STRUCT) {
+ $this->ae = new \Airavata\API\Error\AuthorizationException();
+ $xfer += $this->ae->read($input);
} else {
$xfer += $input->skip($ftype);
}
@@ -21104,7 +21344,125 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllCredentialSummaryForUsersInGateway_args');
+ $xfer += $output->writeStructBegin('Airavata_getCredentialSummary_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getAllCredentialSummaries_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var int
+ */
+ public $type = 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' => 'type',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['type'])) {
+ $this->type = $vals['type'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getAllCredentialSummaries_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::I32) {
+ $xfer += $input->readI32($this->type);
+ } 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_getAllCredentialSummaries_args');
if ($this->authzToken !== null) {
if (!is_object($this->authzToken)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -21118,16 +21476,6 @@
$xfer += $output->writeI32($this->type);
$xfer += $output->writeFieldEnd();
}
- if ($this->gatewayId !== null) {
- $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 3);
- $xfer += $output->writeString($this->gatewayId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->userId !== null) {
- $xfer += $output->writeFieldBegin('userId', TType::STRING, 4);
- $xfer += $output->writeString($this->userId);
- $xfer += $output->writeFieldEnd();
- }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
@@ -21135,7 +21483,7 @@
}
-class Airavata_getAllCredentialSummaryForUsersInGateway_result {
+class Airavata_getAllCredentialSummaries_result {
static $_TSPEC;
/**
@@ -21201,7 +21549,7 @@
}
public function getName() {
- return 'Airavata_getAllCredentialSummaryForUsersInGateway_result';
+ return 'Airavata_getAllCredentialSummaries_result';
}
public function read($input)
@@ -21222,15 +21570,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size37 = 0;
- $_etype40 = 0;
- $xfer += $input->readListBegin($_etype40, $_size37);
- for ($_i41 = 0; $_i41 < $_size37; ++$_i41)
+ $_size21 = 0;
+ $_etype24 = 0;
+ $xfer += $input->readListBegin($_etype24, $_size21);
+ for ($_i25 = 0; $_i25 < $_size21; ++$_i25)
{
- $elem42 = null;
- $elem42 = new \Airavata\Model\Credential\Store\CredentialSummary();
- $xfer += $elem42->read($input);
- $this->success []= $elem42;
+ $elem26 = null;
+ $elem26 = new \Airavata\Model\Credential\Store\CredentialSummary();
+ $xfer += $elem26->read($input);
+ $this->success []= $elem26;
}
$xfer += $input->readListEnd();
} else {
@@ -21273,7 +21621,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllCredentialSummaryForUsersInGateway_result');
+ $xfer += $output->writeStructBegin('Airavata_getAllCredentialSummaries_result');
if ($this->success !== null) {
if (!is_array($this->success)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -21282,9 +21630,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter43)
+ foreach ($this->success as $iter27)
{
- $xfer += $iter43->write($output);
+ $xfer += $iter27->write($output);
}
}
$output->writeListEnd();
@@ -21313,293 +21661,6 @@
}
-class Airavata_getAllGatewayPWDCredentials_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var string
- */
- public $gatewayId = 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,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authzToken'])) {
- $this->authzToken = $vals['authzToken'];
- }
- if (isset($vals['gatewayId'])) {
- $this->gatewayId = $vals['gatewayId'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_getAllGatewayPWDCredentials_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->gatewayId);
- } 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_getAllGatewayPWDCredentials_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, 2);
- $xfer += $output->writeString($this->gatewayId);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_getAllGatewayPWDCredentials_result {
- static $_TSPEC;
-
- /**
- * @var array
- */
- public $success = null;
- /**
- * @var \Airavata\API\Error\InvalidRequestException
- */
- public $ire = null;
- /**
- * @var \Airavata\API\Error\AiravataClientException
- */
- public $ace = null;
- /**
- * @var \Airavata\API\Error\AiravataSystemException
- */
- public $ase = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::MAP,
- 'ktype' => TType::STRING,
- 'vtype' => TType::STRING,
- 'key' => array(
- 'type' => TType::STRING,
- ),
- 'val' => array(
- 'type' => TType::STRING,
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ace',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\AiravataClientException',
- ),
- 3 => array(
- 'var' => 'ase',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\AiravataSystemException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ace'])) {
- $this->ace = $vals['ace'];
- }
- if (isset($vals['ase'])) {
- $this->ase = $vals['ase'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_getAllGatewayPWDCredentials_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 0:
- if ($ftype == TType::MAP) {
- $this->success = array();
- $_size44 = 0;
- $_ktype45 = 0;
- $_vtype46 = 0;
- $xfer += $input->readMapBegin($_ktype45, $_vtype46, $_size44);
- for ($_i48 = 0; $_i48 < $_size44; ++$_i48)
- {
- $key49 = '';
- $val50 = '';
- $xfer += $input->readString($key49);
- $xfer += $input->readString($val50);
- $this->success[$key49] = $val50;
- }
- $xfer += $input->readMapEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- 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->ace = new \Airavata\API\Error\AiravataClientException();
- $xfer += $this->ace->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->ase = new \Airavata\API\Error\AiravataSystemException();
- $xfer += $this->ase->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_getAllGatewayPWDCredentials_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::MAP, 0);
- {
- $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success));
- {
- foreach ($this->success as $kiter51 => $viter52)
- {
- $xfer += $output->writeString($kiter51);
- $xfer += $output->writeString($viter52);
- }
- }
- $output->writeMapEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ace !== null) {
- $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
- $xfer += $this->ace->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ase !== null) {
- $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
- $xfer += $this->ase->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
class Airavata_deleteSSHPubKey_args {
static $_TSPEC;
@@ -21611,10 +21672,6 @@
* @var string
*/
public $airavataCredStoreToken = null;
- /**
- * @var string
- */
- public $gatewayId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -21628,10 +21685,6 @@
'var' => 'airavataCredStoreToken',
'type' => TType::STRING,
),
- 3 => array(
- 'var' => 'gatewayId',
- 'type' => TType::STRING,
- ),
);
}
if (is_array($vals)) {
@@ -21641,9 +21694,6 @@
if (isset($vals['airavataCredStoreToken'])) {
$this->airavataCredStoreToken = $vals['airavataCredStoreToken'];
}
- if (isset($vals['gatewayId'])) {
- $this->gatewayId = $vals['gatewayId'];
- }
}
}
@@ -21681,13 +21731,6 @@
$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;
@@ -21714,11 +21757,6 @@
$xfer += $output->writeString($this->airavataCredStoreToken);
$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;
@@ -21745,6 +21783,10 @@
* @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)) {
@@ -21768,6 +21810,11 @@
'type' => TType::STRUCT,
'class' => '\Airavata\API\Error\AiravataSystemException',
),
+ 4 => array(
+ 'var' => 'ae',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AuthorizationException',
+ ),
);
}
if (is_array($vals)) {
@@ -21783,6 +21830,9 @@
if (isset($vals['ase'])) {
$this->ase = $vals['ase'];
}
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
}
}
@@ -21836,6 +21886,14 @@
$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;
@@ -21869,6 +21927,11 @@
$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;
@@ -21887,10 +21950,6 @@
* @var string
*/
public $airavataCredStoreToken = null;
- /**
- * @var string
- */
- public $gatewayId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -21904,10 +21963,6 @@
'var' => 'airavataCredStoreToken',
'type' => TType::STRING,
),
- 3 => array(
- 'var' => 'gatewayId',
- 'type' => TType::STRING,
- ),
);
}
if (is_array($vals)) {
@@ -21917,9 +21972,6 @@
if (isset($vals['airavataCredStoreToken'])) {
$this->airavataCredStoreToken = $vals['airavataCredStoreToken'];
}
- if (isset($vals['gatewayId'])) {
- $this->gatewayId = $vals['gatewayId'];
- }
}
}
@@ -21957,13 +22009,6 @@
$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;
@@ -21990,11 +22035,6 @@
$xfer += $output->writeString($this->airavataCredStoreToken);
$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;
@@ -22021,6 +22061,10 @@
* @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)) {
@@ -22044,6 +22088,11 @@
'type' => TType::STRUCT,
'class' => '\Airavata\API\Error\AiravataSystemException',
),
+ 4 => array(
+ 'var' => 'ae',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AuthorizationException',
+ ),
);
}
if (is_array($vals)) {
@@ -22059,6 +22108,9 @@
if (isset($vals['ase'])) {
$this->ase = $vals['ase'];
}
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
}
}
@@ -22112,6 +22164,14 @@
$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;
@@ -22145,6 +22205,11 @@
$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;
@@ -23648,15 +23713,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size53 = 0;
- $_etype56 = 0;
- $xfer += $input->readListBegin($_etype56, $_size53);
- for ($_i57 = 0; $_i57 < $_size53; ++$_i57)
+ $_size28 = 0;
+ $_etype31 = 0;
+ $xfer += $input->readListBegin($_etype31, $_size28);
+ for ($_i32 = 0; $_i32 < $_size28; ++$_i32)
{
- $elem58 = null;
- $elem58 = new \Airavata\Model\Workspace\Project();
- $xfer += $elem58->read($input);
- $this->success []= $elem58;
+ $elem33 = null;
+ $elem33 = new \Airavata\Model\Workspace\Project();
+ $xfer += $elem33->read($input);
+ $this->success []= $elem33;
}
$xfer += $input->readListEnd();
} else {
@@ -23716,9 +23781,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter59)
+ foreach ($this->success as $iter34)
{
- $xfer += $iter59->write($output);
+ $xfer += $iter34->write($output);
}
}
$output->writeListEnd();
@@ -23884,17 +23949,17 @@
case 4:
if ($ftype == TType::MAP) {
$this->filters = array();
- $_size60 = 0;
- $_ktype61 = 0;
- $_vtype62 = 0;
- $xfer += $input->readMapBegin($_ktype61, $_vtype62, $_size60);
- for ($_i64 = 0; $_i64 < $_size60; ++$_i64)
+ $_size35 = 0;
+ $_ktype36 = 0;
+ $_vtype37 = 0;
+ $xfer += $input->readMapBegin($_ktype36, $_vtype37, $_size35);
+ for ($_i39 = 0; $_i39 < $_size35; ++$_i39)
{
- $key65 = 0;
- $val66 = '';
- $xfer += $input->readI32($key65);
- $xfer += $input->readString($val66);
- $this->filters[$key65] = $val66;
+ $key40 = 0;
+ $val41 = '';
+ $xfer += $input->readI32($key40);
+ $xfer += $input->readString($val41);
+ $this->filters[$key40] = $val41;
}
$xfer += $input->readMapEnd();
} else {
@@ -23954,10 +24019,10 @@
{
$output->writeMapBegin(TType::I32, TType::STRING, count($this->filters));
{
- foreach ($this->filters as $kiter67 => $viter68)
+ foreach ($this->filters as $kiter42 => $viter43)
{
- $xfer += $output->writeI32($kiter67);
- $xfer += $output->writeString($viter68);
+ $xfer += $output->writeI32($kiter42);
+ $xfer += $output->writeString($viter43);
}
}
$output->writeMapEnd();
@@ -24080,15 +24145,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size69 = 0;
- $_etype72 = 0;
- $xfer += $input->readListBegin($_etype72, $_size69);
- for ($_i73 = 0; $_i73 < $_size69; ++$_i73)
+ $_size44 = 0;
+ $_etype47 = 0;
+ $xfer += $input->readListBegin($_etype47, $_size44);
+ for ($_i48 = 0; $_i48 < $_size44; ++$_i48)
{
- $elem74 = null;
- $elem74 = new \Airavata\Model\Workspace\Project();
- $xfer += $elem74->read($input);
- $this->success []= $elem74;
+ $elem49 = null;
+ $elem49 = new \Airavata\Model\Workspace\Project();
+ $xfer += $elem49->read($input);
+ $this->success []= $elem49;
}
$xfer += $input->readListEnd();
} else {
@@ -24148,9 +24213,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter75)
+ foreach ($this->success as $iter50)
{
- $xfer += $iter75->write($output);
+ $xfer += $iter50->write($output);
}
}
$output->writeListEnd();
@@ -24316,17 +24381,17 @@
case 4:
if ($ftype == TType::MAP) {
$this->filters = array();
- $_size76 = 0;
- $_ktype77 = 0;
- $_vtype78 = 0;
- $xfer += $input->readMapBegin($_ktype77, $_vtype78, $_size76);
- for ($_i80 = 0; $_i80 < $_size76; ++$_i80)
+ $_size51 = 0;
+ $_ktype52 = 0;
+ $_vtype53 = 0;
+ $xfer += $input->readMapBegin($_ktype52, $_vtype53, $_size51);
+ for ($_i55 = 0; $_i55 < $_size51; ++$_i55)
{
- $key81 = 0;
- $val82 = '';
- $xfer += $input->readI32($key81);
- $xfer += $input->readString($val82);
- $this->filters[$key81] = $val82;
+ $key56 = 0;
+ $val57 = '';
+ $xfer += $input->readI32($key56);
+ $xfer += $input->readString($val57);
+ $this->filters[$key56] = $val57;
}
$xfer += $input->readMapEnd();
} else {
@@ -24386,10 +24451,10 @@
{
$output->writeMapBegin(TType::I32, TType::STRING, count($this->filters));
{
- foreach ($this->filters as $kiter83 => $viter84)
+ foreach ($this->filters as $kiter58 => $viter59)
{
- $xfer += $output->writeI32($kiter83);
- $xfer += $output->writeString($viter84);
+ $xfer += $output->writeI32($kiter58);
+ $xfer += $output->writeString($viter59);
}
}
$output->writeMapEnd();
@@ -24512,15 +24577,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size85 = 0;
- $_etype88 = 0;
- $xfer += $input->readListBegin($_etype88, $_size85);
- for ($_i89 = 0; $_i89 < $_size85; ++$_i89)
+ $_size60 = 0;
+ $_etype63 = 0;
+ $xfer += $input->readListBegin($_etype63, $_size60);
+ for ($_i64 = 0; $_i64 < $_size60; ++$_i64)
{
- $elem90 = null;
- $elem90 = new \Airavata\Model\Experiment\ExperimentSummaryModel();
- $xfer += $elem90->read($input);
- $this->success []= $elem90;
+ $elem65 = null;
+ $elem65 = new \Airavata\Model\Experiment\ExperimentSummaryModel();
+ $xfer += $elem65->read($input);
+ $this->success []= $elem65;
}
$xfer += $input->readListEnd();
} else {
@@ -24580,9 +24645,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter91)
+ foreach ($this->success as $iter66)
{
- $xfer += $iter91->write($output);
+ $xfer += $iter66->write($output);
}
}
$output->writeListEnd();
@@ -25274,15 +25339,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size92 = 0;
- $_etype95 = 0;
- $xfer += $input->readListBegin($_etype95, $_size92);
- for ($_i96 = 0; $_i96 < $_size92; ++$_i96)
+ $_size67 = 0;
+ $_etype70 = 0;
+ $xfer += $input->readListBegin($_etype70, $_size67);
+ for ($_i71 = 0; $_i71 < $_size67; ++$_i71)
{
- $elem97 = null;
- $elem97 = new \Airavata\Model\Experiment\ExperimentModel();
- $xfer += $elem97->read($input);
- $this->success []= $elem97;
+ $elem72 = null;
+ $elem72 = new \Airavata\Model\Experiment\ExperimentModel();
+ $xfer += $elem72->read($input);
+ $this->success []= $elem72;
}
$xfer += $input->readListEnd();
} else {
@@ -25350,9 +25415,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter98)
+ foreach ($this->success as $iter73)
{
- $xfer += $iter98->write($output);
+ $xfer += $iter73->write($output);
}
}
$output->writeListEnd();
@@ -25662,15 +25727,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size99 = 0;
- $_etype102 = 0;
- $xfer += $input->readListBegin($_etype102, $_size99);
- for ($_i103 = 0; $_i103 < $_size99; ++$_i103)
+ $_size74 = 0;
+ $_etype77 = 0;
+ $xfer += $input->readListBegin($_etype77, $_size74);
+ for ($_i78 = 0; $_i78 < $_size74; ++$_i78)
{
- $elem104 = null;
- $elem104 = new \Airavata\Model\Experiment\ExperimentModel();
- $xfer += $elem104->read($input);
- $this->success []= $elem104;
+ $elem79 = null;
+ $elem79 = new \Airavata\Model\Experiment\ExperimentModel();
+ $xfer += $elem79->read($input);
+ $this->success []= $elem79;
}
$xfer += $input->readListEnd();
} else {
@@ -25730,9 +25795,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter105)
+ foreach ($this->success as $iter80)
{
- $xfer += $iter105->write($output);
+ $xfer += $iter80->write($output);
}
}
$output->writeListEnd();
@@ -29126,15 +29191,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size106 = 0;
- $_etype109 = 0;
- $xfer += $input->readListBegin($_etype109, $_size106);
- for ($_i110 = 0; $_i110 < $_size106; ++$_i110)
+ $_size81 = 0;
+ $_etype84 = 0;
+ $xfer += $input->readListBegin($_etype84, $_size81);
+ for ($_i85 = 0; $_i85 < $_size81; ++$_i85)
{
- $elem111 = null;
- $elem111 = new \Airavata\Model\Application\Io\OutputDataObjectType();
- $xfer += $elem111->read($input);
- $this->success []= $elem111;
+ $elem86 = null;
+ $elem86 = new \Airavata\Model\Application\Io\OutputDataObjectType();
+ $xfer += $elem86->read($input);
+ $this->success []= $elem86;
}
$xfer += $input->readListEnd();
} else {
@@ -29202,9 +29267,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter112)
+ foreach ($this->success as $iter87)
{
- $xfer += $iter112->write($output);
+ $xfer += $iter87->write($output);
}
}
$output->writeListEnd();
@@ -29457,15 +29522,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size113 = 0;
- $_etype116 = 0;
- $xfer += $input->readListBegin($_etype116, $_size113);
- for ($_i117 = 0; $_i117 < $_size113; ++$_i117)
+ $_size88 = 0;
+ $_etype91 = 0;
+ $xfer += $input->readListBegin($_etype91, $_size88);
+ for ($_i92 = 0; $_i92 < $_size88; ++$_i92)
{
- $elem118 = null;
- $elem118 = new \Airavata\Model\Application\Io\OutputDataObjectType();
- $xfer += $elem118->read($input);
- $this->success []= $elem118;
+ $elem93 = null;
+ $elem93 = new \Airavata\Model\Application\Io\OutputDataObjectType();
+ $xfer += $elem93->read($input);
+ $this->success []= $elem93;
}
$xfer += $input->readListEnd();
} else {
@@ -29533,9 +29598,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter119)
+ foreach ($this->success as $iter94)
{
- $xfer += $iter119->write($output);
+ $xfer += $iter94->write($output);
}
}
$output->writeListEnd();
@@ -29792,18 +29857,18 @@
case 0:
if ($ftype == TType::MAP) {
$this->success = array();
- $_size120 = 0;
- $_ktype121 = 0;
- $_vtype122 = 0;
- $xfer += $input->readMapBegin($_ktype121, $_vtype122, $_size120);
- for ($_i124 = 0; $_i124 < $_size120; ++$_i124)
+ $_size95 = 0;
+ $_ktype96 = 0;
+ $_vtype97 = 0;
+ $xfer += $input->readMapBegin($_ktype96, $_vtype97, $_size95);
+ for ($_i99 = 0; $_i99 < $_size95; ++$_i99)
{
- $key125 = '';
- $val126 = new \Airavata\Model\Status\JobStatus();
- $xfer += $input->readString($key125);
- $val126 = new \Airavata\Model\Status\JobStatus();
- $xfer += $val126->read($input);
- $this->success[$key125] = $val126;
+ $key100 = '';
+ $val101 = new \Airavata\Model\Status\JobStatus();
+ $xfer += $input->readString($key100);
+ $val101 = new \Airavata\Model\Status\JobStatus();
+ $xfer += $val101->read($input);
+ $this->success[$key100] = $val101;
}
$xfer += $input->readMapEnd();
} else {
@@ -29871,10 +29936,10 @@
{
$output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success));
{
- foreach ($this->success as $kiter127 => $viter128)
+ foreach ($this->success as $kiter102 => $viter103)
{
- $xfer += $output->writeString($kiter127);
- $xfer += $viter128->write($output);
+ $xfer += $output->writeString($kiter102);
+ $xfer += $viter103->write($output);
}
}
$output->writeMapEnd();
@@ -30127,15 +30192,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size129 = 0;
- $_etype132 = 0;
- $xfer += $input->readListBegin($_etype132, $_size129);
- for ($_i133 = 0; $_i133 < $_size129; ++$_i133)
+ $_size104 = 0;
+ $_etype107 = 0;
+ $xfer += $input->readListBegin($_etype107, $_size104);
+ for ($_i108 = 0; $_i108 < $_size104; ++$_i108)
{
- $elem134 = null;
- $elem134 = new \Airavata\Model\Job\JobModel();
- $xfer += $elem134->read($input);
- $this->success []= $elem134;
+ $elem109 = null;
+ $elem109 = new \Airavata\Model\Job\JobModel();
+ $xfer += $elem109->read($input);
+ $this->success []= $elem109;
}
$xfer += $input->readListEnd();
} else {
@@ -30203,9 +30268,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter135)
+ foreach ($this->success as $iter110)
{
- $xfer += $iter135->write($output);
+ $xfer += $iter110->write($output);
}
}
$output->writeListEnd();
@@ -32392,15 +32457,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size136 = 0;
- $_etype139 = 0;
- $xfer += $input->readListBegin($_etype139, $_size136);
- for ($_i140 = 0; $_i140 < $_size136; ++$_i140)
+ $_size111 = 0;
+ $_etype114 = 0;
+ $xfer += $input->readListBegin($_etype114, $_size111);
+ for ($_i115 = 0; $_i115 < $_size111; ++$_i115)
{
- $elem141 = null;
- $elem141 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule();
- $xfer += $elem141->read($input);
- $this->success []= $elem141;
+ $elem116 = null;
+ $elem116 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule();
+ $xfer += $elem116->read($input);
+ $this->success []= $elem116;
}
$xfer += $input->readListEnd();
} else {
@@ -32460,9 +32525,315 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter142)
+ foreach ($this->success as $iter117)
{
- $xfer += $iter142->write($output);
+ $xfer += $iter117->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getAccessibleAppModules_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $gatewayId = 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,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['gatewayId'])) {
+ $this->gatewayId = $vals['gatewayId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getAccessibleAppModules_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->gatewayId);
+ } 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_getAccessibleAppModules_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, 2);
+ $xfer += $output->writeString($this->gatewayId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getAccessibleAppModules_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\AppDeployment\ApplicationModule',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'ire',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\InvalidRequestException',
+ ),
+ 2 => array(
+ 'var' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_getAccessibleAppModules_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size118 = 0;
+ $_etype121 = 0;
+ $xfer += $input->readListBegin($_etype121, $_size118);
+ for ($_i122 = 0; $_i122 < $_size118; ++$_i122)
+ {
+ $elem123 = null;
+ $elem123 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule();
+ $xfer += $elem123->read($input);
+ $this->success []= $elem123;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ 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->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getAccessibleAppModules_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 $iter124)
+ {
+ $xfer += $iter124->write($output);
}
}
$output->writeListEnd();
@@ -34149,15 +34520,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size143 = 0;
- $_etype146 = 0;
- $xfer += $input->readListBegin($_etype146, $_size143);
- for ($_i147 = 0; $_i147 < $_size143; ++$_i147)
+ $_size125 = 0;
+ $_etype128 = 0;
+ $xfer += $input->readListBegin($_etype128, $_size125);
+ for ($_i129 = 0; $_i129 < $_size125; ++$_i129)
{
- $elem148 = null;
- $elem148 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription();
- $xfer += $elem148->read($input);
- $this->success []= $elem148;
+ $elem130 = null;
+ $elem130 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription();
+ $xfer += $elem130->read($input);
+ $this->success []= $elem130;
}
$xfer += $input->readListEnd();
} else {
@@ -34217,9 +34588,338 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter149)
+ foreach ($this->success as $iter131)
{
- $xfer += $iter149->write($output);
+ $xfer += $iter131->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getAccessibleApplicationDeployments_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $gatewayId = null;
+ /**
+ * @var int
+ */
+ public $permissionType = 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,
+ ),
+ 3 => array(
+ 'var' => 'permissionType',
+ '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['permissionType'])) {
+ $this->permissionType = $vals['permissionType'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getAccessibleApplicationDeployments_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->gatewayId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->permissionType);
+ } 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_getAccessibleApplicationDeployments_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, 2);
+ $xfer += $output->writeString($this->gatewayId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionType !== null) {
+ $xfer += $output->writeFieldBegin('permissionType', TType::I32, 3);
+ $xfer += $output->writeI32($this->permissionType);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getAccessibleApplicationDeployments_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'ire',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\InvalidRequestException',
+ ),
+ 2 => array(
+ 'var' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_getAccessibleApplicationDeployments_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size132 = 0;
+ $_etype135 = 0;
+ $xfer += $input->readListBegin($_etype135, $_size132);
+ for ($_i136 = 0; $_i136 < $_size132; ++$_i136)
+ {
+ $elem137 = null;
+ $elem137 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription();
+ $xfer += $elem137->read($input);
+ $this->success []= $elem137;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ 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->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getAccessibleApplicationDeployments_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 $iter138)
+ {
+ $xfer += $iter138->write($output);
}
}
$output->writeListEnd();
@@ -34454,14 +35154,14 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size150 = 0;
- $_etype153 = 0;
- $xfer += $input->readListBegin($_etype153, $_size150);
- for ($_i154 = 0; $_i154 < $_size150; ++$_i154)
+ $_size139 = 0;
+ $_etype142 = 0;
+ $xfer += $input->readListBegin($_etype142, $_size139);
+ for ($_i143 = 0; $_i143 < $_size139; ++$_i143)
{
- $elem155 = null;
- $xfer += $input->readString($elem155);
- $this->success []= $elem155;
+ $elem144 = null;
+ $xfer += $input->readString($elem144);
+ $this->success []= $elem144;
}
$xfer += $input->readListEnd();
} else {
@@ -34521,9 +35221,338 @@
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter156)
+ foreach ($this->success as $iter145)
{
- $xfer += $output->writeString($iter156);
+ $xfer += $output->writeString($iter145);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getApplicationDeploymentsForAppModuleAndGroupResourceProfile_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $appModuleId = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = 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' => 'appModuleId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['appModuleId'])) {
+ $this->appModuleId = $vals['appModuleId'];
+ }
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getApplicationDeploymentsForAppModuleAndGroupResourceProfile_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->appModuleId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupResourceProfileId);
+ } 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_getApplicationDeploymentsForAppModuleAndGroupResourceProfile_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->appModuleId !== null) {
+ $xfer += $output->writeFieldBegin('appModuleId', TType::STRING, 2);
+ $xfer += $output->writeString($this->appModuleId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getApplicationDeploymentsForAppModuleAndGroupResourceProfile_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'ire',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\InvalidRequestException',
+ ),
+ 2 => array(
+ 'var' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_getApplicationDeploymentsForAppModuleAndGroupResourceProfile_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size146 = 0;
+ $_etype149 = 0;
+ $xfer += $input->readListBegin($_etype149, $_size146);
+ for ($_i150 = 0; $_i150 < $_size146; ++$_i150)
+ {
+ $elem151 = null;
+ $elem151 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription();
+ $xfer += $elem151->read($input);
+ $this->success []= $elem151;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ 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->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getApplicationDeploymentsForAppModuleAndGroupResourceProfile_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 $iter152)
+ {
+ $xfer += $iter152->write($output);
}
}
$output->writeListEnd();
@@ -36259,17 +37288,17 @@
case 0:
if ($ftype == TType::MAP) {
$this->success = array();
- $_size157 = 0;
- $_ktype158 = 0;
- $_vtype159 = 0;
- $xfer += $input->readMapBegin($_ktype158, $_vtype159, $_size157);
- for ($_i161 = 0; $_i161 < $_size157; ++$_i161)
+ $_size153 = 0;
+ $_ktype154 = 0;
+ $_vtype155 = 0;
+ $xfer += $input->readMapBegin($_ktype154, $_vtype155, $_size153);
+ for ($_i157 = 0; $_i157 < $_size153; ++$_i157)
{
- $key162 = '';
- $val163 = '';
- $xfer += $input->readString($key162);
- $xfer += $input->readString($val163);
- $this->success[$key162] = $val163;
+ $key158 = '';
+ $val159 = '';
+ $xfer += $input->readString($key158);
+ $xfer += $input->readString($val159);
+ $this->success[$key158] = $val159;
}
$xfer += $input->readMapEnd();
} else {
@@ -36329,10 +37358,10 @@
{
$output->writeMapBegin(TType::STRING, TType::STRING, count($this->success));
{
- foreach ($this->success as $kiter164 => $viter165)
+ foreach ($this->success as $kiter160 => $viter161)
{
- $xfer += $output->writeString($kiter164);
- $xfer += $output->writeString($viter165);
+ $xfer += $output->writeString($kiter160);
+ $xfer += $output->writeString($viter161);
}
}
$output->writeMapEnd();
@@ -36568,15 +37597,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size166 = 0;
- $_etype169 = 0;
- $xfer += $input->readListBegin($_etype169, $_size166);
- for ($_i170 = 0; $_i170 < $_size166; ++$_i170)
+ $_size162 = 0;
+ $_etype165 = 0;
+ $xfer += $input->readListBegin($_etype165, $_size162);
+ for ($_i166 = 0; $_i166 < $_size162; ++$_i166)
{
- $elem171 = null;
- $elem171 = new \Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription();
- $xfer += $elem171->read($input);
- $this->success []= $elem171;
+ $elem167 = null;
+ $elem167 = new \Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription();
+ $xfer += $elem167->read($input);
+ $this->success []= $elem167;
}
$xfer += $input->readListEnd();
} else {
@@ -36636,9 +37665,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter172)
+ foreach ($this->success as $iter168)
{
- $xfer += $iter172->write($output);
+ $xfer += $iter168->write($output);
}
}
$output->writeListEnd();
@@ -36874,15 +37903,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size173 = 0;
- $_etype176 = 0;
- $xfer += $input->readListBegin($_etype176, $_size173);
- for ($_i177 = 0; $_i177 < $_size173; ++$_i177)
+ $_size169 = 0;
+ $_etype172 = 0;
+ $xfer += $input->readListBegin($_etype172, $_size169);
+ for ($_i173 = 0; $_i173 < $_size169; ++$_i173)
{
- $elem178 = null;
- $elem178 = new \Airavata\Model\Application\Io\InputDataObjectType();
- $xfer += $elem178->read($input);
- $this->success []= $elem178;
+ $elem174 = null;
+ $elem174 = new \Airavata\Model\Application\Io\InputDataObjectType();
+ $xfer += $elem174->read($input);
+ $this->success []= $elem174;
}
$xfer += $input->readListEnd();
} else {
@@ -36942,9 +37971,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter179)
+ foreach ($this->success as $iter175)
{
- $xfer += $iter179->write($output);
+ $xfer += $iter175->write($output);
}
}
$output->writeListEnd();
@@ -37180,15 +38209,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size180 = 0;
- $_etype183 = 0;
- $xfer += $input->readListBegin($_etype183, $_size180);
- for ($_i184 = 0; $_i184 < $_size180; ++$_i184)
+ $_size176 = 0;
+ $_etype179 = 0;
+ $xfer += $input->readListBegin($_etype179, $_size176);
+ for ($_i180 = 0; $_i180 < $_size176; ++$_i180)
{
- $elem185 = null;
- $elem185 = new \Airavata\Model\Application\Io\OutputDataObjectType();
- $xfer += $elem185->read($input);
- $this->success []= $elem185;
+ $elem181 = null;
+ $elem181 = new \Airavata\Model\Application\Io\OutputDataObjectType();
+ $xfer += $elem181->read($input);
+ $this->success []= $elem181;
}
$xfer += $input->readListEnd();
} else {
@@ -37248,9 +38277,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter186)
+ foreach ($this->success as $iter182)
{
- $xfer += $iter186->write($output);
+ $xfer += $iter182->write($output);
}
}
$output->writeListEnd();
@@ -37489,17 +38518,17 @@
case 0:
if ($ftype == TType::MAP) {
$this->success = array();
- $_size187 = 0;
- $_ktype188 = 0;
- $_vtype189 = 0;
- $xfer += $input->readMapBegin($_ktype188, $_vtype189, $_size187);
- for ($_i191 = 0; $_i191 < $_size187; ++$_i191)
+ $_size183 = 0;
+ $_ktype184 = 0;
+ $_vtype185 = 0;
+ $xfer += $input->readMapBegin($_ktype184, $_vtype185, $_size183);
+ for ($_i187 = 0; $_i187 < $_size183; ++$_i187)
{
- $key192 = '';
- $val193 = '';
- $xfer += $input->readString($key192);
- $xfer += $input->readString($val193);
- $this->success[$key192] = $val193;
+ $key188 = '';
+ $val189 = '';
+ $xfer += $input->readString($key188);
+ $xfer += $input->readString($val189);
+ $this->success[$key188] = $val189;
}
$xfer += $input->readMapEnd();
} else {
@@ -37559,10 +38588,10 @@
{
$output->writeMapBegin(TType::STRING, TType::STRING, count($this->success));
{
- foreach ($this->success as $kiter194 => $viter195)
+ foreach ($this->success as $kiter190 => $viter191)
{
- $xfer += $output->writeString($kiter194);
- $xfer += $output->writeString($viter195);
+ $xfer += $output->writeString($kiter190);
+ $xfer += $output->writeString($viter191);
}
}
$output->writeMapEnd();
@@ -38344,17 +39373,17 @@
case 0:
if ($ftype == TType::MAP) {
$this->success = array();
- $_size196 = 0;
- $_ktype197 = 0;
- $_vtype198 = 0;
- $xfer += $input->readMapBegin($_ktype197, $_vtype198, $_size196);
- for ($_i200 = 0; $_i200 < $_size196; ++$_i200)
+ $_size192 = 0;
+ $_ktype193 = 0;
+ $_vtype194 = 0;
+ $xfer += $input->readMapBegin($_ktype193, $_vtype194, $_size192);
+ for ($_i196 = 0; $_i196 < $_size192; ++$_i196)
{
- $key201 = '';
- $val202 = '';
- $xfer += $input->readString($key201);
- $xfer += $input->readString($val202);
- $this->success[$key201] = $val202;
+ $key197 = '';
+ $val198 = '';
+ $xfer += $input->readString($key197);
+ $xfer += $input->readString($val198);
+ $this->success[$key197] = $val198;
}
$xfer += $input->readMapEnd();
} else {
@@ -38414,10 +39443,10 @@
{
$output->writeMapBegin(TType::STRING, TType::STRING, count($this->success));
{
- foreach ($this->success as $kiter203 => $viter204)
+ foreach ($this->success as $kiter199 => $viter200)
{
- $xfer += $output->writeString($kiter203);
- $xfer += $output->writeString($viter204);
+ $xfer += $output->writeString($kiter199);
+ $xfer += $output->writeString($viter200);
}
}
$output->writeMapEnd();
@@ -39783,17 +40812,17 @@
case 0:
if ($ftype == TType::MAP) {
$this->success = array();
- $_size205 = 0;
- $_ktype206 = 0;
- $_vtype207 = 0;
- $xfer += $input->readMapBegin($_ktype206, $_vtype207, $_size205);
- for ($_i209 = 0; $_i209 < $_size205; ++$_i209)
+ $_size201 = 0;
+ $_ktype202 = 0;
+ $_vtype203 = 0;
+ $xfer += $input->readMapBegin($_ktype202, $_vtype203, $_size201);
+ for ($_i205 = 0; $_i205 < $_size201; ++$_i205)
{
- $key210 = '';
- $val211 = '';
- $xfer += $input->readString($key210);
- $xfer += $input->readString($val211);
- $this->success[$key210] = $val211;
+ $key206 = '';
+ $val207 = '';
+ $xfer += $input->readString($key206);
+ $xfer += $input->readString($val207);
+ $this->success[$key206] = $val207;
}
$xfer += $input->readMapEnd();
} else {
@@ -39853,10 +40882,10 @@
{
$output->writeMapBegin(TType::STRING, TType::STRING, count($this->success));
{
- foreach ($this->success as $kiter212 => $viter213)
+ foreach ($this->success as $kiter208 => $viter209)
{
- $xfer += $output->writeString($kiter212);
- $xfer += $output->writeString($viter213);
+ $xfer += $output->writeString($kiter208);
+ $xfer += $output->writeString($viter209);
}
}
$output->writeMapEnd();
@@ -48915,17 +49944,17 @@
case 2:
if ($ftype == TType::MAP) {
$this->jobSubmissionPriorityMap = array();
- $_size214 = 0;
- $_ktype215 = 0;
- $_vtype216 = 0;
- $xfer += $input->readMapBegin($_ktype215, $_vtype216, $_size214);
- for ($_i218 = 0; $_i218 < $_size214; ++$_i218)
+ $_size210 = 0;
+ $_ktype211 = 0;
+ $_vtype212 = 0;
+ $xfer += $input->readMapBegin($_ktype211, $_vtype212, $_size210);
+ for ($_i214 = 0; $_i214 < $_size210; ++$_i214)
{
- $key219 = '';
- $val220 = 0;
- $xfer += $input->readString($key219);
- $xfer += $input->readI32($val220);
- $this->jobSubmissionPriorityMap[$key219] = $val220;
+ $key215 = '';
+ $val216 = 0;
+ $xfer += $input->readString($key215);
+ $xfer += $input->readI32($val216);
+ $this->jobSubmissionPriorityMap[$key215] = $val216;
}
$xfer += $input->readMapEnd();
} else {
@@ -48961,10 +49990,10 @@
{
$output->writeMapBegin(TType::STRING, TType::I32, count($this->jobSubmissionPriorityMap));
{
- foreach ($this->jobSubmissionPriorityMap as $kiter221 => $viter222)
+ foreach ($this->jobSubmissionPriorityMap as $kiter217 => $viter218)
{
- $xfer += $output->writeString($kiter221);
- $xfer += $output->writeI32($viter222);
+ $xfer += $output->writeString($kiter217);
+ $xfer += $output->writeI32($viter218);
}
}
$output->writeMapEnd();
@@ -49227,17 +50256,17 @@
case 2:
if ($ftype == TType::MAP) {
$this->dataMovementPriorityMap = array();
- $_size223 = 0;
- $_ktype224 = 0;
- $_vtype225 = 0;
- $xfer += $input->readMapBegin($_ktype224, $_vtype225, $_size223);
- for ($_i227 = 0; $_i227 < $_size223; ++$_i227)
+ $_size219 = 0;
+ $_ktype220 = 0;
+ $_vtype221 = 0;
+ $xfer += $input->readMapBegin($_ktype220, $_vtype221, $_size219);
+ for ($_i223 = 0; $_i223 < $_size219; ++$_i223)
{
- $key228 = '';
- $val229 = 0;
- $xfer += $input->readString($key228);
- $xfer += $input->readI32($val229);
- $this->dataMovementPriorityMap[$key228] = $val229;
+ $key224 = '';
+ $val225 = 0;
+ $xfer += $input->readString($key224);
+ $xfer += $input->readI32($val225);
+ $this->dataMovementPriorityMap[$key224] = $val225;
}
$xfer += $input->readMapEnd();
} else {
@@ -49273,10 +50302,10 @@
{
$output->writeMapBegin(TType::STRING, TType::I32, count($this->dataMovementPriorityMap));
{
- foreach ($this->dataMovementPriorityMap as $kiter230 => $viter231)
+ foreach ($this->dataMovementPriorityMap as $kiter226 => $viter227)
{
- $xfer += $output->writeString($kiter230);
- $xfer += $output->writeI32($viter231);
+ $xfer += $output->writeString($kiter226);
+ $xfer += $output->writeI32($viter227);
}
}
$output->writeMapEnd();
@@ -54163,15 +55192,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size232 = 0;
- $_etype235 = 0;
- $xfer += $input->readListBegin($_etype235, $_size232);
- for ($_i236 = 0; $_i236 < $_size232; ++$_i236)
+ $_size228 = 0;
+ $_etype231 = 0;
+ $xfer += $input->readListBegin($_etype231, $_size228);
+ for ($_i232 = 0; $_i232 < $_size228; ++$_i232)
{
- $elem237 = null;
- $elem237 = new \Airavata\Model\AppCatalog\GatewayProfile\ComputeResourcePreference();
- $xfer += $elem237->read($input);
- $this->success []= $elem237;
+ $elem233 = null;
+ $elem233 = new \Airavata\Model\AppCatalog\GatewayProfile\ComputeResourcePreference();
+ $xfer += $elem233->read($input);
+ $this->success []= $elem233;
}
$xfer += $input->readListEnd();
} else {
@@ -54231,9 +55260,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter238)
+ foreach ($this->success as $iter234)
{
- $xfer += $iter238->write($output);
+ $xfer += $iter234->write($output);
}
}
$output->writeListEnd();
@@ -54469,15 +55498,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size239 = 0;
- $_etype242 = 0;
- $xfer += $input->readListBegin($_etype242, $_size239);
- for ($_i243 = 0; $_i243 < $_size239; ++$_i243)
+ $_size235 = 0;
+ $_etype238 = 0;
+ $xfer += $input->readListBegin($_etype238, $_size235);
+ for ($_i239 = 0; $_i239 < $_size235; ++$_i239)
{
- $elem244 = null;
- $elem244 = new \Airavata\Model\AppCatalog\GatewayProfile\StoragePreference();
- $xfer += $elem244->read($input);
- $this->success []= $elem244;
+ $elem240 = null;
+ $elem240 = new \Airavata\Model\AppCatalog\GatewayProfile\StoragePreference();
+ $xfer += $elem240->read($input);
+ $this->success []= $elem240;
}
$xfer += $input->readListEnd();
} else {
@@ -54537,9 +55566,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter245)
+ foreach ($this->success as $iter241)
{
- $xfer += $iter245->write($output);
+ $xfer += $iter241->write($output);
}
}
$output->writeListEnd();
@@ -54752,15 +55781,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size246 = 0;
- $_etype249 = 0;
- $xfer += $input->readListBegin($_etype249, $_size246);
- for ($_i250 = 0; $_i250 < $_size246; ++$_i250)
+ $_size242 = 0;
+ $_etype245 = 0;
+ $xfer += $input->readListBegin($_etype245, $_size242);
+ for ($_i246 = 0; $_i246 < $_size242; ++$_i246)
{
- $elem251 = null;
- $elem251 = new \Airavata\Model\AppCatalog\GatewayProfile\GatewayResourceProfile();
- $xfer += $elem251->read($input);
- $this->success []= $elem251;
+ $elem247 = null;
+ $elem247 = new \Airavata\Model\AppCatalog\GatewayProfile\GatewayResourceProfile();
+ $xfer += $elem247->read($input);
+ $this->success []= $elem247;
}
$xfer += $input->readListEnd();
} else {
@@ -54820,9 +55849,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter252)
+ foreach ($this->success as $iter248)
{
- $xfer += $iter252->write($output);
+ $xfer += $iter248->write($output);
}
}
$output->writeListEnd();
@@ -56295,15 +57324,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size253 = 0;
- $_etype256 = 0;
- $xfer += $input->readListBegin($_etype256, $_size253);
- for ($_i257 = 0; $_i257 < $_size253; ++$_i257)
+ $_size249 = 0;
+ $_etype252 = 0;
+ $xfer += $input->readListBegin($_etype252, $_size249);
+ for ($_i253 = 0; $_i253 < $_size249; ++$_i253)
{
- $elem258 = null;
- $elem258 = new \Airavata\Model\AppCatalog\AccountProvisioning\SSHAccountProvisioner();
- $xfer += $elem258->read($input);
- $this->success []= $elem258;
+ $elem254 = null;
+ $elem254 = new \Airavata\Model\AppCatalog\AccountProvisioning\SSHAccountProvisioner();
+ $xfer += $elem254->read($input);
+ $this->success []= $elem254;
}
$xfer += $input->readListEnd();
} else {
@@ -56363,9 +57392,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter259)
+ foreach ($this->success as $iter255)
{
- $xfer += $iter259->write($output);
+ $xfer += $iter255->write($output);
}
}
$output->writeListEnd();
@@ -57613,6 +58642,307 @@
}
+class Airavata_isUserResourceProfileExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+ /**
+ * @var string
+ */
+ public $gatewayID = 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' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'gatewayID',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ if (isset($vals['gatewayID'])) {
+ $this->gatewayID = $vals['gatewayID'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_isUserResourceProfileExists_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->userId);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_isUserResourceProfileExists_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->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gatewayID !== null) {
+ $xfer += $output->writeFieldBegin('gatewayID', TType::STRING, 3);
+ $xfer += $output->writeString($this->gatewayID);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_isUserResourceProfileExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_isUserResourceProfileExists_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 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();
+ $xfer += $this->ire->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_isUserResourceProfileExists_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);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
class Airavata_getUserResourceProfile_args {
static $_TSPEC;
@@ -60136,15 +61466,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size260 = 0;
- $_etype263 = 0;
- $xfer += $input->readListBegin($_etype263, $_size260);
- for ($_i264 = 0; $_i264 < $_size260; ++$_i264)
+ $_size256 = 0;
+ $_etype259 = 0;
+ $xfer += $input->readListBegin($_etype259, $_size256);
+ for ($_i260 = 0; $_i260 < $_size256; ++$_i260)
{
- $elem265 = null;
- $elem265 = new \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference();
- $xfer += $elem265->read($input);
- $this->success []= $elem265;
+ $elem261 = null;
+ $elem261 = new \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference();
+ $xfer += $elem261->read($input);
+ $this->success []= $elem261;
}
$xfer += $input->readListEnd();
} else {
@@ -60204,9 +61534,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter266)
+ foreach ($this->success as $iter262)
{
- $xfer += $iter266->write($output);
+ $xfer += $iter262->write($output);
}
}
$output->writeListEnd();
@@ -60465,15 +61795,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size267 = 0;
- $_etype270 = 0;
- $xfer += $input->readListBegin($_etype270, $_size267);
- for ($_i271 = 0; $_i271 < $_size267; ++$_i271)
+ $_size263 = 0;
+ $_etype266 = 0;
+ $xfer += $input->readListBegin($_etype266, $_size263);
+ for ($_i267 = 0; $_i267 < $_size263; ++$_i267)
{
- $elem272 = null;
- $elem272 = new \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference();
- $xfer += $elem272->read($input);
- $this->success []= $elem272;
+ $elem268 = null;
+ $elem268 = new \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference();
+ $xfer += $elem268->read($input);
+ $this->success []= $elem268;
}
$xfer += $input->readListEnd();
} else {
@@ -60533,9 +61863,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter273)
+ foreach ($this->success as $iter269)
{
- $xfer += $iter273->write($output);
+ $xfer += $iter269->write($output);
}
}
$output->writeListEnd();
@@ -60748,15 +62078,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size274 = 0;
- $_etype277 = 0;
- $xfer += $input->readListBegin($_etype277, $_size274);
- for ($_i278 = 0; $_i278 < $_size274; ++$_i278)
+ $_size270 = 0;
+ $_etype273 = 0;
+ $xfer += $input->readListBegin($_etype273, $_size270);
+ for ($_i274 = 0; $_i274 < $_size270; ++$_i274)
{
- $elem279 = null;
- $elem279 = new \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile();
- $xfer += $elem279->read($input);
- $this->success []= $elem279;
+ $elem275 = null;
+ $elem275 = new \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile();
+ $xfer += $elem275->read($input);
+ $this->success []= $elem275;
}
$xfer += $input->readListEnd();
} else {
@@ -60816,9 +62146,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter280)
+ foreach ($this->success as $iter276)
{
- $xfer += $iter280->write($output);
+ $xfer += $iter276->write($output);
}
}
$output->writeListEnd();
@@ -62405,14 +63735,14 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size281 = 0;
- $_etype284 = 0;
- $xfer += $input->readListBegin($_etype284, $_size281);
- for ($_i285 = 0; $_i285 < $_size281; ++$_i285)
+ $_size277 = 0;
+ $_etype280 = 0;
+ $xfer += $input->readListBegin($_etype280, $_size277);
+ for ($_i281 = 0; $_i281 < $_size277; ++$_i281)
{
- $elem286 = null;
- $xfer += $input->readString($elem286);
- $this->success []= $elem286;
+ $elem282 = null;
+ $xfer += $input->readString($elem282);
+ $this->success []= $elem282;
}
$xfer += $input->readListEnd();
} else {
@@ -62472,9 +63802,9 @@
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter287)
+ foreach ($this->success as $iter283)
{
- $xfer += $output->writeString($iter287);
+ $xfer += $output->writeString($iter283);
}
}
$output->writeListEnd();
@@ -62687,15 +64017,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size288 = 0;
- $_etype291 = 0;
- $xfer += $input->readListBegin($_etype291, $_size288);
- for ($_i292 = 0; $_i292 < $_size288; ++$_i292)
+ $_size284 = 0;
+ $_etype287 = 0;
+ $xfer += $input->readListBegin($_etype287, $_size284);
+ for ($_i288 = 0; $_i288 < $_size284; ++$_i288)
{
- $elem293 = null;
- $elem293 = new \Airavata\Model\Status\QueueStatusModel();
- $xfer += $elem293->read($input);
- $this->success []= $elem293;
+ $elem289 = null;
+ $elem289 = new \Airavata\Model\Status\QueueStatusModel();
+ $xfer += $elem289->read($input);
+ $this->success []= $elem289;
}
$xfer += $input->readListEnd();
} else {
@@ -62755,9 +64085,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter294)
+ foreach ($this->success as $iter290)
{
- $xfer += $iter294->write($output);
+ $xfer += $iter290->write($output);
}
}
$output->writeListEnd();
@@ -62801,7 +64131,7 @@
/**
* @var string
*/
- public $workflowTemplateId = null;
+ public $workflowId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -62812,7 +64142,7 @@
'class' => '\Airavata\Model\Security\AuthzToken',
),
2 => array(
- 'var' => 'workflowTemplateId',
+ 'var' => 'workflowId',
'type' => TType::STRING,
),
);
@@ -62821,8 +64151,8 @@
if (isset($vals['authzToken'])) {
$this->authzToken = $vals['authzToken'];
}
- if (isset($vals['workflowTemplateId'])) {
- $this->workflowTemplateId = $vals['workflowTemplateId'];
+ if (isset($vals['workflowId'])) {
+ $this->workflowId = $vals['workflowId'];
}
}
}
@@ -62856,7 +64186,7 @@
break;
case 2:
if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->workflowTemplateId);
+ $xfer += $input->readString($this->workflowId);
} else {
$xfer += $input->skip($ftype);
}
@@ -62882,9 +64212,9 @@
$xfer += $this->authzToken->write($output);
$xfer += $output->writeFieldEnd();
}
- if ($this->workflowTemplateId !== null) {
- $xfer += $output->writeFieldBegin('workflowTemplateId', TType::STRING, 2);
- $xfer += $output->writeString($this->workflowTemplateId);
+ if ($this->workflowId !== null) {
+ $xfer += $output->writeFieldBegin('workflowId', TType::STRING, 2);
+ $xfer += $output->writeString($this->workflowId);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
@@ -62898,7 +64228,7 @@
static $_TSPEC;
/**
- * @var \Airavata\Model\WorkflowModel
+ * @var \Airavata\Model\Workflow\AiravataWorkflow
*/
public $success = null;
/**
@@ -62924,7 +64254,7 @@
0 => array(
'var' => 'success',
'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\WorkflowModel',
+ 'class' => '\Airavata\Model\Workflow\AiravataWorkflow',
),
1 => array(
'var' => 'ire',
@@ -62988,7 +64318,7 @@
{
case 0:
if ($ftype == TType::STRUCT) {
- $this->success = new \Airavata\Model\WorkflowModel();
+ $this->success = new \Airavata\Model\Workflow\AiravataWorkflow();
$xfer += $this->success->read($input);
} else {
$xfer += $input->skip($ftype);
@@ -63084,7 +64414,7 @@
/**
* @var string
*/
- public $workflowTemplateId = null;
+ public $workflowId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -63095,7 +64425,7 @@
'class' => '\Airavata\Model\Security\AuthzToken',
),
2 => array(
- 'var' => 'workflowTemplateId',
+ 'var' => 'workflowId',
'type' => TType::STRING,
),
);
@@ -63104,8 +64434,8 @@
if (isset($vals['authzToken'])) {
$this->authzToken = $vals['authzToken'];
}
- if (isset($vals['workflowTemplateId'])) {
- $this->workflowTemplateId = $vals['workflowTemplateId'];
+ if (isset($vals['workflowId'])) {
+ $this->workflowId = $vals['workflowId'];
}
}
}
@@ -63139,7 +64469,7 @@
break;
case 2:
if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->workflowTemplateId);
+ $xfer += $input->readString($this->workflowId);
} else {
$xfer += $input->skip($ftype);
}
@@ -63165,9 +64495,9 @@
$xfer += $this->authzToken->write($output);
$xfer += $output->writeFieldEnd();
}
- if ($this->workflowTemplateId !== null) {
- $xfer += $output->writeFieldBegin('workflowTemplateId', TType::STRING, 2);
- $xfer += $output->writeString($this->workflowTemplateId);
+ if ($this->workflowId !== null) {
+ $xfer += $output->writeFieldBegin('workflowId', TType::STRING, 2);
+ $xfer += $output->writeString($this->workflowId);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
@@ -63341,7 +64671,7 @@
*/
public $gatewayId = null;
/**
- * @var \Airavata\Model\WorkflowModel
+ * @var \Airavata\Model\Workflow\AiravataWorkflow
*/
public $workflow = null;
@@ -63360,7 +64690,7 @@
3 => array(
'var' => 'workflow',
'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\WorkflowModel',
+ 'class' => '\Airavata\Model\Workflow\AiravataWorkflow',
),
);
}
@@ -63413,7 +64743,7 @@
break;
case 3:
if ($ftype == TType::STRUCT) {
- $this->workflow = new \Airavata\Model\WorkflowModel();
+ $this->workflow = new \Airavata\Model\Workflow\AiravataWorkflow();
$xfer += $this->workflow->read($input);
} else {
$xfer += $input->skip($ftype);
@@ -63645,9 +64975,9 @@
/**
* @var string
*/
- public $workflowTemplateId = null;
+ public $workflowId = null;
/**
- * @var \Airavata\Model\WorkflowModel
+ * @var \Airavata\Model\Workflow\AiravataWorkflow
*/
public $workflow = null;
@@ -63660,13 +64990,13 @@
'class' => '\Airavata\Model\Security\AuthzToken',
),
2 => array(
- 'var' => 'workflowTemplateId',
+ 'var' => 'workflowId',
'type' => TType::STRING,
),
3 => array(
'var' => 'workflow',
'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\WorkflowModel',
+ 'class' => '\Airavata\Model\Workflow\AiravataWorkflow',
),
);
}
@@ -63674,8 +65004,8 @@
if (isset($vals['authzToken'])) {
$this->authzToken = $vals['authzToken'];
}
- if (isset($vals['workflowTemplateId'])) {
- $this->workflowTemplateId = $vals['workflowTemplateId'];
+ if (isset($vals['workflowId'])) {
+ $this->workflowId = $vals['workflowId'];
}
if (isset($vals['workflow'])) {
$this->workflow = $vals['workflow'];
@@ -63712,14 +65042,14 @@
break;
case 2:
if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->workflowTemplateId);
+ $xfer += $input->readString($this->workflowId);
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
if ($ftype == TType::STRUCT) {
- $this->workflow = new \Airavata\Model\WorkflowModel();
+ $this->workflow = new \Airavata\Model\Workflow\AiravataWorkflow();
$xfer += $this->workflow->read($input);
} else {
$xfer += $input->skip($ftype);
@@ -63746,9 +65076,9 @@
$xfer += $this->authzToken->write($output);
$xfer += $output->writeFieldEnd();
}
- if ($this->workflowTemplateId !== null) {
- $xfer += $output->writeFieldBegin('workflowTemplateId', TType::STRING, 2);
- $xfer += $output->writeString($this->workflowTemplateId);
+ if ($this->workflowId !== null) {
+ $xfer += $output->writeFieldBegin('workflowId', TType::STRING, 2);
+ $xfer += $output->writeString($this->workflowId);
$xfer += $output->writeFieldEnd();
}
if ($this->workflow !== null) {
@@ -63918,7 +65248,7 @@
}
-class Airavata_getWorkflowTemplateId_args {
+class Airavata_getWorkflowId_args {
static $_TSPEC;
/**
@@ -63955,7 +65285,7 @@
}
public function getName() {
- return 'Airavata_getWorkflowTemplateId_args';
+ return 'Airavata_getWorkflowId_args';
}
public function read($input)
@@ -64000,7 +65330,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getWorkflowTemplateId_args');
+ $xfer += $output->writeStructBegin('Airavata_getWorkflowId_args');
if ($this->authzToken !== null) {
if (!is_object($this->authzToken)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -64021,7 +65351,7 @@
}
-class Airavata_getWorkflowTemplateId_result {
+class Airavata_getWorkflowId_result {
static $_TSPEC;
/**
@@ -64094,7 +65424,7 @@
}
public function getName() {
- return 'Airavata_getWorkflowTemplateId_result';
+ return 'Airavata_getWorkflowId_result';
}
public function read($input)
@@ -64163,7 +65493,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getWorkflowTemplateId_result');
+ $xfer += $output->writeStructBegin('Airavata_getWorkflowId_result');
if ($this->success !== null) {
$xfer += $output->writeFieldBegin('success', TType::STRING, 0);
$xfer += $output->writeString($this->success);
@@ -65808,15 +67138,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size295 = 0;
- $_etype298 = 0;
- $xfer += $input->readListBegin($_etype298, $_size295);
- for ($_i299 = 0; $_i299 < $_size295; ++$_i299)
+ $_size291 = 0;
+ $_etype294 = 0;
+ $xfer += $input->readListBegin($_etype294, $_size291);
+ for ($_i295 = 0; $_i295 < $_size291; ++$_i295)
{
- $elem300 = null;
- $elem300 = new \Airavata\Model\Data\Replica\DataProductModel();
- $xfer += $elem300->read($input);
- $this->success []= $elem300;
+ $elem296 = null;
+ $elem296 = new \Airavata\Model\Data\Replica\DataProductModel();
+ $xfer += $elem296->read($input);
+ $this->success []= $elem296;
}
$xfer += $input->readListEnd();
} else {
@@ -65876,9 +67206,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter301)
+ foreach ($this->success as $iter297)
{
- $xfer += $iter301->write($output);
+ $xfer += $iter297->write($output);
}
}
$output->writeListEnd();
@@ -65924,10 +67254,6 @@
*/
public $resourceId = null;
/**
- * @var int
- */
- public $resourceType = null;
- /**
* @var array
*/
public $userPermissionList = null;
@@ -65944,10 +67270,6 @@
'var' => 'resourceId',
'type' => TType::STRING,
),
- 3 => array(
- 'var' => 'resourceType',
- 'type' => TType::I32,
- ),
4 => array(
'var' => 'userPermissionList',
'type' => TType::MAP,
@@ -65969,9 +67291,6 @@
if (isset($vals['resourceId'])) {
$this->resourceId = $vals['resourceId'];
}
- if (isset($vals['resourceType'])) {
- $this->resourceType = $vals['resourceType'];
- }
if (isset($vals['userPermissionList'])) {
$this->userPermissionList = $vals['userPermissionList'];
}
@@ -66012,27 +67331,20 @@
$xfer += $input->skip($ftype);
}
break;
- case 3:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->resourceType);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
case 4:
if ($ftype == TType::MAP) {
$this->userPermissionList = array();
- $_size302 = 0;
- $_ktype303 = 0;
- $_vtype304 = 0;
- $xfer += $input->readMapBegin($_ktype303, $_vtype304, $_size302);
- for ($_i306 = 0; $_i306 < $_size302; ++$_i306)
+ $_size298 = 0;
+ $_ktype299 = 0;
+ $_vtype300 = 0;
+ $xfer += $input->readMapBegin($_ktype299, $_vtype300, $_size298);
+ for ($_i302 = 0; $_i302 < $_size298; ++$_i302)
{
- $key307 = '';
- $val308 = 0;
- $xfer += $input->readString($key307);
- $xfer += $input->readI32($val308);
- $this->userPermissionList[$key307] = $val308;
+ $key303 = '';
+ $val304 = 0;
+ $xfer += $input->readString($key303);
+ $xfer += $input->readI32($val304);
+ $this->userPermissionList[$key303] = $val304;
}
$xfer += $input->readMapEnd();
} else {
@@ -66065,11 +67377,6 @@
$xfer += $output->writeString($this->resourceId);
$xfer += $output->writeFieldEnd();
}
- if ($this->resourceType !== null) {
- $xfer += $output->writeFieldBegin('resourceType', TType::I32, 3);
- $xfer += $output->writeI32($this->resourceType);
- $xfer += $output->writeFieldEnd();
- }
if ($this->userPermissionList !== null) {
if (!is_array($this->userPermissionList)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -66078,10 +67385,10 @@
{
$output->writeMapBegin(TType::STRING, TType::I32, count($this->userPermissionList));
{
- foreach ($this->userPermissionList as $kiter309 => $viter310)
+ foreach ($this->userPermissionList as $kiter305 => $viter306)
{
- $xfer += $output->writeString($kiter309);
- $xfer += $output->writeI32($viter310);
+ $xfer += $output->writeString($kiter305);
+ $xfer += $output->writeI32($viter306);
}
}
$output->writeMapEnd();
@@ -66270,7 +67577,7 @@
}
-class Airavata_revokeSharingOfResourceFromUsers_args {
+class Airavata_shareResourceWithGroups_args {
static $_TSPEC;
/**
@@ -66282,9 +67589,340 @@
*/
public $resourceId = null;
/**
- * @var int
+ * @var array
*/
- public $resourceType = null;
+ public $groupPermissionList = 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' => 'resourceId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'groupPermissionList',
+ 'type' => TType::MAP,
+ 'ktype' => TType::STRING,
+ 'vtype' => TType::I32,
+ 'key' => array(
+ 'type' => TType::STRING,
+ ),
+ 'val' => array(
+ 'type' => TType::I32,
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['resourceId'])) {
+ $this->resourceId = $vals['resourceId'];
+ }
+ if (isset($vals['groupPermissionList'])) {
+ $this->groupPermissionList = $vals['groupPermissionList'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_shareResourceWithGroups_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->resourceId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::MAP) {
+ $this->groupPermissionList = array();
+ $_size307 = 0;
+ $_ktype308 = 0;
+ $_vtype309 = 0;
+ $xfer += $input->readMapBegin($_ktype308, $_vtype309, $_size307);
+ for ($_i311 = 0; $_i311 < $_size307; ++$_i311)
+ {
+ $key312 = '';
+ $val313 = 0;
+ $xfer += $input->readString($key312);
+ $xfer += $input->readI32($val313);
+ $this->groupPermissionList[$key312] = $val313;
+ }
+ $xfer += $input->readMapEnd();
+ } 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_shareResourceWithGroups_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->resourceId !== null) {
+ $xfer += $output->writeFieldBegin('resourceId', TType::STRING, 2);
+ $xfer += $output->writeString($this->resourceId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupPermissionList !== null) {
+ if (!is_array($this->groupPermissionList)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('groupPermissionList', TType::MAP, 4);
+ {
+ $output->writeMapBegin(TType::STRING, TType::I32, count($this->groupPermissionList));
+ {
+ foreach ($this->groupPermissionList as $kiter314 => $viter315)
+ {
+ $xfer += $output->writeString($kiter314);
+ $xfer += $output->writeI32($viter315);
+ }
+ }
+ $output->writeMapEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_shareResourceWithGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_shareResourceWithGroups_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 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();
+ $xfer += $this->ire->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_shareResourceWithGroups_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);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_revokeSharingOfResourceFromUsers_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $resourceId = null;
/**
* @var array
*/
@@ -66302,10 +67940,6 @@
'var' => 'resourceId',
'type' => TType::STRING,
),
- 3 => array(
- 'var' => 'resourceType',
- 'type' => TType::I32,
- ),
4 => array(
'var' => 'userPermissionList',
'type' => TType::MAP,
@@ -66327,9 +67961,6 @@
if (isset($vals['resourceId'])) {
$this->resourceId = $vals['resourceId'];
}
- if (isset($vals['resourceType'])) {
- $this->resourceType = $vals['resourceType'];
- }
if (isset($vals['userPermissionList'])) {
$this->userPermissionList = $vals['userPermissionList'];
}
@@ -66370,27 +68001,20 @@
$xfer += $input->skip($ftype);
}
break;
- case 3:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->resourceType);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
case 4:
if ($ftype == TType::MAP) {
$this->userPermissionList = array();
- $_size311 = 0;
- $_ktype312 = 0;
- $_vtype313 = 0;
- $xfer += $input->readMapBegin($_ktype312, $_vtype313, $_size311);
- for ($_i315 = 0; $_i315 < $_size311; ++$_i315)
+ $_size316 = 0;
+ $_ktype317 = 0;
+ $_vtype318 = 0;
+ $xfer += $input->readMapBegin($_ktype317, $_vtype318, $_size316);
+ for ($_i320 = 0; $_i320 < $_size316; ++$_i320)
{
- $key316 = '';
- $val317 = 0;
- $xfer += $input->readString($key316);
- $xfer += $input->readI32($val317);
- $this->userPermissionList[$key316] = $val317;
+ $key321 = '';
+ $val322 = 0;
+ $xfer += $input->readString($key321);
+ $xfer += $input->readI32($val322);
+ $this->userPermissionList[$key321] = $val322;
}
$xfer += $input->readMapEnd();
} else {
@@ -66423,11 +68047,6 @@
$xfer += $output->writeString($this->resourceId);
$xfer += $output->writeFieldEnd();
}
- if ($this->resourceType !== null) {
- $xfer += $output->writeFieldBegin('resourceType', TType::I32, 3);
- $xfer += $output->writeI32($this->resourceType);
- $xfer += $output->writeFieldEnd();
- }
if ($this->userPermissionList !== null) {
if (!is_array($this->userPermissionList)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -66436,10 +68055,10 @@
{
$output->writeMapBegin(TType::STRING, TType::I32, count($this->userPermissionList));
{
- foreach ($this->userPermissionList as $kiter318 => $viter319)
+ foreach ($this->userPermissionList as $kiter323 => $viter324)
{
- $xfer += $output->writeString($kiter318);
- $xfer += $output->writeI32($viter319);
+ $xfer += $output->writeString($kiter323);
+ $xfer += $output->writeI32($viter324);
}
}
$output->writeMapEnd();
@@ -66628,7 +68247,7 @@
}
-class Airavata_getAllAccessibleUsers_args {
+class Airavata_revokeSharingOfResourceFromGroups_args {
static $_TSPEC;
/**
@@ -66640,9 +68259,340 @@
*/
public $resourceId = null;
/**
- * @var int
+ * @var array
*/
- public $resourceType = null;
+ public $groupPermissionList = 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' => 'resourceId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'groupPermissionList',
+ 'type' => TType::MAP,
+ 'ktype' => TType::STRING,
+ 'vtype' => TType::I32,
+ 'key' => array(
+ 'type' => TType::STRING,
+ ),
+ 'val' => array(
+ 'type' => TType::I32,
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['resourceId'])) {
+ $this->resourceId = $vals['resourceId'];
+ }
+ if (isset($vals['groupPermissionList'])) {
+ $this->groupPermissionList = $vals['groupPermissionList'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_revokeSharingOfResourceFromGroups_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->resourceId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::MAP) {
+ $this->groupPermissionList = array();
+ $_size325 = 0;
+ $_ktype326 = 0;
+ $_vtype327 = 0;
+ $xfer += $input->readMapBegin($_ktype326, $_vtype327, $_size325);
+ for ($_i329 = 0; $_i329 < $_size325; ++$_i329)
+ {
+ $key330 = '';
+ $val331 = 0;
+ $xfer += $input->readString($key330);
+ $xfer += $input->readI32($val331);
+ $this->groupPermissionList[$key330] = $val331;
+ }
+ $xfer += $input->readMapEnd();
+ } 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_revokeSharingOfResourceFromGroups_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->resourceId !== null) {
+ $xfer += $output->writeFieldBegin('resourceId', TType::STRING, 2);
+ $xfer += $output->writeString($this->resourceId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupPermissionList !== null) {
+ if (!is_array($this->groupPermissionList)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('groupPermissionList', TType::MAP, 4);
+ {
+ $output->writeMapBegin(TType::STRING, TType::I32, count($this->groupPermissionList));
+ {
+ foreach ($this->groupPermissionList as $kiter332 => $viter333)
+ {
+ $xfer += $output->writeString($kiter332);
+ $xfer += $output->writeI32($viter333);
+ }
+ }
+ $output->writeMapEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_revokeSharingOfResourceFromGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_revokeSharingOfResourceFromGroups_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 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();
+ $xfer += $this->ire->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_revokeSharingOfResourceFromGroups_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);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getAllAccessibleUsers_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $resourceId = null;
/**
* @var int
*/
@@ -66660,10 +68610,6 @@
'var' => 'resourceId',
'type' => TType::STRING,
),
- 3 => array(
- 'var' => 'resourceType',
- 'type' => TType::I32,
- ),
4 => array(
'var' => 'permissionType',
'type' => TType::I32,
@@ -66677,9 +68623,6 @@
if (isset($vals['resourceId'])) {
$this->resourceId = $vals['resourceId'];
}
- if (isset($vals['resourceType'])) {
- $this->resourceType = $vals['resourceType'];
- }
if (isset($vals['permissionType'])) {
$this->permissionType = $vals['permissionType'];
}
@@ -66720,13 +68663,6 @@
$xfer += $input->skip($ftype);
}
break;
- case 3:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->resourceType);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
case 4:
if ($ftype == TType::I32) {
$xfer += $input->readI32($this->permissionType);
@@ -66760,11 +68696,6 @@
$xfer += $output->writeString($this->resourceId);
$xfer += $output->writeFieldEnd();
}
- if ($this->resourceType !== null) {
- $xfer += $output->writeFieldBegin('resourceType', TType::I32, 3);
- $xfer += $output->writeI32($this->resourceType);
- $xfer += $output->writeFieldEnd();
- }
if ($this->permissionType !== null) {
$xfer += $output->writeFieldBegin('permissionType', TType::I32, 4);
$xfer += $output->writeI32($this->permissionType);
@@ -66875,14 +68806,14 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size320 = 0;
- $_etype323 = 0;
- $xfer += $input->readListBegin($_etype323, $_size320);
- for ($_i324 = 0; $_i324 < $_size320; ++$_i324)
+ $_size334 = 0;
+ $_etype337 = 0;
+ $xfer += $input->readListBegin($_etype337, $_size334);
+ for ($_i338 = 0; $_i338 < $_size334; ++$_i338)
{
- $elem325 = null;
- $xfer += $input->readString($elem325);
- $this->success []= $elem325;
+ $elem339 = null;
+ $xfer += $input->readString($elem339);
+ $this->success []= $elem339;
}
$xfer += $input->readListEnd();
} else {
@@ -66942,9 +68873,9 @@
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter326)
+ foreach ($this->success as $iter340)
{
- $xfer += $output->writeString($iter326);
+ $xfer += $output->writeString($iter340);
}
}
$output->writeListEnd();
@@ -66978,7 +68909,7 @@
}
-class Airavata_createGroup_args {
+class Airavata_getAllAccessibleGroups_args {
static $_TSPEC;
/**
@@ -66986,9 +68917,13 @@
*/
public $authzToken = null;
/**
- * @var \Airavata\Model\Group\GroupModel
+ * @var string
*/
- public $groupModel = null;
+ public $resourceId = null;
+ /**
+ * @var int
+ */
+ public $permissionType = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -66999,9 +68934,12 @@
'class' => '\Airavata\Model\Security\AuthzToken',
),
2 => array(
- 'var' => 'groupModel',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\Group\GroupModel',
+ 'var' => 'resourceId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'permissionType',
+ 'type' => TType::I32,
),
);
}
@@ -67009,14 +68947,635 @@
if (isset($vals['authzToken'])) {
$this->authzToken = $vals['authzToken'];
}
- if (isset($vals['groupModel'])) {
- $this->groupModel = $vals['groupModel'];
+ if (isset($vals['resourceId'])) {
+ $this->resourceId = $vals['resourceId'];
+ }
+ if (isset($vals['permissionType'])) {
+ $this->permissionType = $vals['permissionType'];
}
}
}
public function getName() {
- return 'Airavata_createGroup_args';
+ return 'Airavata_getAllAccessibleGroups_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->resourceId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->permissionType);
+ } 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_getAllAccessibleGroups_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->resourceId !== null) {
+ $xfer += $output->writeFieldBegin('resourceId', TType::STRING, 2);
+ $xfer += $output->writeString($this->resourceId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionType !== null) {
+ $xfer += $output->writeFieldBegin('permissionType', TType::I32, 4);
+ $xfer += $output->writeI32($this->permissionType);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getAllAccessibleGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var string[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 1 => array(
+ 'var' => 'ire',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\InvalidRequestException',
+ ),
+ 2 => array(
+ 'var' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_getAllAccessibleGroups_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size341 = 0;
+ $_etype344 = 0;
+ $xfer += $input->readListBegin($_etype344, $_size341);
+ for ($_i345 = 0; $_i345 < $_size341; ++$_i345)
+ {
+ $elem346 = null;
+ $xfer += $input->readString($elem346);
+ $this->success []= $elem346;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ 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->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getAllAccessibleGroups_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::STRING, count($this->success));
+ {
+ foreach ($this->success as $iter347)
+ {
+ $xfer += $output->writeString($iter347);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_userHasAccess_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $resourceId = null;
+ /**
+ * @var int
+ */
+ public $permissionType = 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' => 'resourceId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'permissionType',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['resourceId'])) {
+ $this->resourceId = $vals['resourceId'];
+ }
+ if (isset($vals['permissionType'])) {
+ $this->permissionType = $vals['permissionType'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_userHasAccess_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->resourceId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->permissionType);
+ } 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_userHasAccess_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->resourceId !== null) {
+ $xfer += $output->writeFieldBegin('resourceId', TType::STRING, 2);
+ $xfer += $output->writeString($this->resourceId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionType !== null) {
+ $xfer += $output->writeFieldBegin('permissionType', TType::I32, 3);
+ $xfer += $output->writeI32($this->permissionType);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_userHasAccess_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_userHasAccess_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 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();
+ $xfer += $this->ire->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_userHasAccess_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);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_createGroupResourceProfile_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile
+ */
+ public $groupResourceProfile = 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' => 'groupResourceProfile',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupResourceProfile'])) {
+ $this->groupResourceProfile = $vals['groupResourceProfile'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_createGroupResourceProfile_args';
}
public function read($input)
@@ -67044,8 +69603,8 @@
break;
case 2:
if ($ftype == TType::STRUCT) {
- $this->groupModel = new \Airavata\Model\Group\GroupModel();
- $xfer += $this->groupModel->read($input);
+ $this->groupResourceProfile = new \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile();
+ $xfer += $this->groupResourceProfile->read($input);
} else {
$xfer += $input->skip($ftype);
}
@@ -67062,7 +69621,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_createGroup_args');
+ $xfer += $output->writeStructBegin('Airavata_createGroupResourceProfile_args');
if ($this->authzToken !== null) {
if (!is_object($this->authzToken)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -67071,12 +69630,12 @@
$xfer += $this->authzToken->write($output);
$xfer += $output->writeFieldEnd();
}
- if ($this->groupModel !== null) {
- if (!is_object($this->groupModel)) {
+ if ($this->groupResourceProfile !== null) {
+ if (!is_object($this->groupResourceProfile)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
}
- $xfer += $output->writeFieldBegin('groupModel', TType::STRUCT, 2);
- $xfer += $this->groupModel->write($output);
+ $xfer += $output->writeFieldBegin('groupResourceProfile', TType::STRUCT, 2);
+ $xfer += $this->groupResourceProfile->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
@@ -67086,7 +69645,7 @@
}
-class Airavata_createGroup_result {
+class Airavata_createGroupResourceProfile_result {
static $_TSPEC;
/**
@@ -67159,7 +69718,7 @@
}
public function getName() {
- return 'Airavata_createGroup_result';
+ return 'Airavata_createGroupResourceProfile_result';
}
public function read($input)
@@ -67228,7 +69787,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_createGroup_result');
+ $xfer += $output->writeStructBegin('Airavata_createGroupResourceProfile_result');
if ($this->success !== null) {
$xfer += $output->writeFieldBegin('success', TType::STRING, 0);
$xfer += $output->writeString($this->success);
@@ -67261,7 +69820,7 @@
}
-class Airavata_updateGroup_args {
+class Airavata_updateGroupResourceProfile_args {
static $_TSPEC;
/**
@@ -67269,9 +69828,9 @@
*/
public $authzToken = null;
/**
- * @var \Airavata\Model\Group\GroupModel
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile
*/
- public $groupModel = null;
+ public $groupResourceProfile = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -67282,9 +69841,9 @@
'class' => '\Airavata\Model\Security\AuthzToken',
),
2 => array(
- 'var' => 'groupModel',
+ 'var' => 'groupResourceProfile',
'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\Group\GroupModel',
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile',
),
);
}
@@ -67292,14 +69851,14 @@
if (isset($vals['authzToken'])) {
$this->authzToken = $vals['authzToken'];
}
- if (isset($vals['groupModel'])) {
- $this->groupModel = $vals['groupModel'];
+ if (isset($vals['groupResourceProfile'])) {
+ $this->groupResourceProfile = $vals['groupResourceProfile'];
}
}
}
public function getName() {
- return 'Airavata_updateGroup_args';
+ return 'Airavata_updateGroupResourceProfile_args';
}
public function read($input)
@@ -67327,8 +69886,8 @@
break;
case 2:
if ($ftype == TType::STRUCT) {
- $this->groupModel = new \Airavata\Model\Group\GroupModel();
- $xfer += $this->groupModel->read($input);
+ $this->groupResourceProfile = new \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile();
+ $xfer += $this->groupResourceProfile->read($input);
} else {
$xfer += $input->skip($ftype);
}
@@ -67345,7 +69904,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_updateGroup_args');
+ $xfer += $output->writeStructBegin('Airavata_updateGroupResourceProfile_args');
if ($this->authzToken !== null) {
if (!is_object($this->authzToken)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -67354,12 +69913,12 @@
$xfer += $this->authzToken->write($output);
$xfer += $output->writeFieldEnd();
}
- if ($this->groupModel !== null) {
- if (!is_object($this->groupModel)) {
+ if ($this->groupResourceProfile !== null) {
+ if (!is_object($this->groupResourceProfile)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
}
- $xfer += $output->writeFieldBegin('groupModel', TType::STRUCT, 2);
- $xfer += $this->groupModel->write($output);
+ $xfer += $output->writeFieldBegin('groupResourceProfile', TType::STRUCT, 2);
+ $xfer += $this->groupResourceProfile->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
@@ -67369,14 +69928,10 @@
}
-class Airavata_updateGroup_result {
+class Airavata_updateGroupResourceProfile_result {
static $_TSPEC;
/**
- * @var bool
- */
- public $success = null;
- /**
* @var \Airavata\API\Error\InvalidRequestException
*/
public $ire = null;
@@ -67396,10 +69951,6 @@
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,
@@ -67423,9 +69974,6 @@
);
}
if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
if (isset($vals['ire'])) {
$this->ire = $vals['ire'];
}
@@ -67442,7 +69990,7 @@
}
public function getName() {
- return 'Airavata_updateGroup_result';
+ return 'Airavata_updateGroupResourceProfile_result';
}
public function read($input)
@@ -67460,13 +70008,6 @@
}
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();
@@ -67511,12 +70052,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_updateGroup_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
- $xfer += $output->writeBool($this->success);
- $xfer += $output->writeFieldEnd();
- }
+ $xfer += $output->writeStructBegin('Airavata_updateGroupResourceProfile_result');
if ($this->ire !== null) {
$xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
$xfer += $this->ire->write($output);
@@ -67544,7 +70080,7 @@
}
-class Airavata_deleteGroup_args {
+class Airavata_getGroupResourceProfile_args {
static $_TSPEC;
/**
@@ -67554,11 +70090,7 @@
/**
* @var string
*/
- public $groupId = null;
- /**
- * @var string
- */
- public $ownerId = null;
+ public $groupResourceProfileId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -67569,11 +70101,7 @@
'class' => '\Airavata\Model\Security\AuthzToken',
),
2 => array(
- 'var' => 'groupId',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'ownerId',
+ 'var' => 'groupResourceProfileId',
'type' => TType::STRING,
),
);
@@ -67582,17 +70110,14 @@
if (isset($vals['authzToken'])) {
$this->authzToken = $vals['authzToken'];
}
- if (isset($vals['groupId'])) {
- $this->groupId = $vals['groupId'];
- }
- if (isset($vals['ownerId'])) {
- $this->ownerId = $vals['ownerId'];
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
}
}
}
public function getName() {
- return 'Airavata_deleteGroup_args';
+ return 'Airavata_getGroupResourceProfile_args';
}
public function read($input)
@@ -67620,14 +70145,7 @@
break;
case 2:
if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->groupId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->ownerId);
+ $xfer += $input->readString($this->groupResourceProfileId);
} else {
$xfer += $input->skip($ftype);
}
@@ -67644,7 +70162,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_deleteGroup_args');
+ $xfer += $output->writeStructBegin('Airavata_getGroupResourceProfile_args');
if ($this->authzToken !== null) {
if (!is_object($this->authzToken)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -67653,14 +70171,9 @@
$xfer += $this->authzToken->write($output);
$xfer += $output->writeFieldEnd();
}
- if ($this->groupId !== null) {
- $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
- $xfer += $output->writeString($this->groupId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ownerId !== null) {
- $xfer += $output->writeFieldBegin('ownerId', TType::STRING, 3);
- $xfer += $output->writeString($this->ownerId);
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupResourceProfileId);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
@@ -67670,11 +70183,11 @@
}
-class Airavata_deleteGroup_result {
+class Airavata_getGroupResourceProfile_result {
static $_TSPEC;
/**
- * @var bool
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile
*/
public $success = null;
/**
@@ -67699,7 +70212,8 @@
self::$_TSPEC = array(
0 => array(
'var' => 'success',
- 'type' => TType::BOOL,
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile',
),
1 => array(
'var' => 'ire',
@@ -67743,286 +70257,7 @@
}
public function getName() {
- return 'Airavata_deleteGroup_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 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();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ace = new \Airavata\API\Error\AiravataClientException();
- $xfer += $this->ace->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->ase = new \Airavata\API\Error\AiravataSystemException();
- $xfer += $this->ase->read($input);
- } else {
- $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;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
-
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_deleteGroup_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);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ace !== null) {
- $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
- $xfer += $this->ace->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ase !== null) {
- $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
- $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;
- }
-
-}
-
-class Airavata_getGroup_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var string
- */
- public $groupId = 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' => 'groupId',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authzToken'])) {
- $this->authzToken = $vals['authzToken'];
- }
- if (isset($vals['groupId'])) {
- $this->groupId = $vals['groupId'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_getGroup_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->groupId);
- } 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_getGroup_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->groupId !== null) {
- $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
- $xfer += $output->writeString($this->groupId);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_getGroup_result {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Group\GroupModel
- */
- public $success = null;
- /**
- * @var \Airavata\API\Error\InvalidRequestException
- */
- public $ire = 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::STRUCT,
- 'class' => '\Airavata\Model\Group\GroupModel',
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ace',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\AiravataClientException',
- ),
- 3 => array(
- 'var' => 'ase',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\API\Error\AiravataSystemException',
- ),
- 4 => 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['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_getGroup_result';
+ return 'Airavata_getGroupResourceProfile_result';
}
public function read($input)
@@ -68042,7 +70277,7 @@
{
case 0:
if ($ftype == TType::STRUCT) {
- $this->success = new \Airavata\Model\Group\GroupModel();
+ $this->success = new \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile();
$xfer += $this->success->read($input);
} else {
$xfer += $input->skip($ftype);
@@ -68092,7 +70327,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getGroup_result');
+ $xfer += $output->writeStructBegin('Airavata_getGroupResourceProfile_result');
if ($this->success !== null) {
if (!is_object($this->success)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -68128,7 +70363,7 @@
}
-class Airavata_getAllGroupsUserBelongs_args {
+class Airavata_removeGroupResourceProfile_args {
static $_TSPEC;
/**
@@ -68138,7 +70373,7 @@
/**
* @var string
*/
- public $userName = null;
+ public $groupResourceProfileId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -68149,7 +70384,7 @@
'class' => '\Airavata\Model\Security\AuthzToken',
),
2 => array(
- 'var' => 'userName',
+ 'var' => 'groupResourceProfileId',
'type' => TType::STRING,
),
);
@@ -68158,14 +70393,14 @@
if (isset($vals['authzToken'])) {
$this->authzToken = $vals['authzToken'];
}
- if (isset($vals['userName'])) {
- $this->userName = $vals['userName'];
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
}
}
}
public function getName() {
- return 'Airavata_getAllGroupsUserBelongs_args';
+ return 'Airavata_removeGroupResourceProfile_args';
}
public function read($input)
@@ -68193,7 +70428,7 @@
break;
case 2:
if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->userName);
+ $xfer += $input->readString($this->groupResourceProfileId);
} else {
$xfer += $input->skip($ftype);
}
@@ -68210,7 +70445,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllGroupsUserBelongs_args');
+ $xfer += $output->writeStructBegin('Airavata_removeGroupResourceProfile_args');
if ($this->authzToken !== null) {
if (!is_object($this->authzToken)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -68219,9 +70454,9 @@
$xfer += $this->authzToken->write($output);
$xfer += $output->writeFieldEnd();
}
- if ($this->userName !== null) {
- $xfer += $output->writeFieldBegin('userName', TType::STRING, 2);
- $xfer += $output->writeString($this->userName);
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupResourceProfileId);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
@@ -68231,11 +70466,289 @@
}
-class Airavata_getAllGroupsUserBelongs_result {
+class Airavata_removeGroupResourceProfile_result {
static $_TSPEC;
/**
- * @var \Airavata\Model\Group\GroupModel[]
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_removeGroupResourceProfile_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 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();
+ $xfer += $this->ire->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_removeGroupResourceProfile_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);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getGroupResourceList_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $gatewayId = 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,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['gatewayId'])) {
+ $this->gatewayId = $vals['gatewayId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getGroupResourceList_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->gatewayId);
+ } 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_getGroupResourceList_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, 2);
+ $xfer += $output->writeString($this->gatewayId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getGroupResourceList_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile[]
*/
public $success = null;
/**
@@ -68264,7 +70777,7 @@
'etype' => TType::STRUCT,
'elem' => array(
'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\Group\GroupModel',
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile',
),
),
1 => array(
@@ -68309,7 +70822,7 @@
}
public function getName() {
- return 'Airavata_getAllGroupsUserBelongs_result';
+ return 'Airavata_getGroupResourceList_result';
}
public function read($input)
@@ -68330,15 +70843,15 @@
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size327 = 0;
- $_etype330 = 0;
- $xfer += $input->readListBegin($_etype330, $_size327);
- for ($_i331 = 0; $_i331 < $_size327; ++$_i331)
+ $_size348 = 0;
+ $_etype351 = 0;
+ $xfer += $input->readListBegin($_etype351, $_size348);
+ for ($_i352 = 0; $_i352 < $_size348; ++$_i352)
{
- $elem332 = null;
- $elem332 = new \Airavata\Model\Group\GroupModel();
- $xfer += $elem332->read($input);
- $this->success []= $elem332;
+ $elem353 = null;
+ $elem353 = new \Airavata\Model\AppCatalog\GroupResourceProfile\GroupResourceProfile();
+ $xfer += $elem353->read($input);
+ $this->success []= $elem353;
}
$xfer += $input->readListEnd();
} else {
@@ -68389,7 +70902,7 @@
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllGroupsUserBelongs_result');
+ $xfer += $output->writeStructBegin('Airavata_getGroupResourceList_result');
if ($this->success !== null) {
if (!is_array($this->success)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -68398,9 +70911,9 @@
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter333)
+ foreach ($this->success as $iter354)
{
- $xfer += $iter333->write($output);
+ $xfer += $iter354->write($output);
}
}
$output->writeListEnd();
@@ -68434,4 +70947,2911 @@
}
+class Airavata_removeGroupComputePrefs_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $computeResourceId = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = 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' => 'computeResourceId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['computeResourceId'])) {
+ $this->computeResourceId = $vals['computeResourceId'];
+ }
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_removeGroupComputePrefs_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->computeResourceId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupResourceProfileId);
+ } 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_removeGroupComputePrefs_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->computeResourceId !== null) {
+ $xfer += $output->writeFieldBegin('computeResourceId', TType::STRING, 2);
+ $xfer += $output->writeString($this->computeResourceId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_removeGroupComputePrefs_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_removeGroupComputePrefs_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 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();
+ $xfer += $this->ire->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_removeGroupComputePrefs_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);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_removeGroupComputeResourcePolicy_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $resourcePolicyId = 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' => 'resourcePolicyId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['resourcePolicyId'])) {
+ $this->resourcePolicyId = $vals['resourcePolicyId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_removeGroupComputeResourcePolicy_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->resourcePolicyId);
+ } 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_removeGroupComputeResourcePolicy_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->resourcePolicyId !== null) {
+ $xfer += $output->writeFieldBegin('resourcePolicyId', TType::STRING, 2);
+ $xfer += $output->writeString($this->resourcePolicyId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_removeGroupComputeResourcePolicy_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_removeGroupComputeResourcePolicy_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 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();
+ $xfer += $this->ire->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_removeGroupComputeResourcePolicy_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);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_removeGroupBatchQueueResourcePolicy_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $resourcePolicyId = 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' => 'resourcePolicyId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['resourcePolicyId'])) {
+ $this->resourcePolicyId = $vals['resourcePolicyId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_removeGroupBatchQueueResourcePolicy_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->resourcePolicyId);
+ } 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_removeGroupBatchQueueResourcePolicy_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->resourcePolicyId !== null) {
+ $xfer += $output->writeFieldBegin('resourcePolicyId', TType::STRING, 2);
+ $xfer += $output->writeString($this->resourcePolicyId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_removeGroupBatchQueueResourcePolicy_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_removeGroupBatchQueueResourcePolicy_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 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();
+ $xfer += $this->ire->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_removeGroupBatchQueueResourcePolicy_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);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getGroupComputeResourcePreference_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $computeResourceId = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = 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' => 'computeResourceId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['computeResourceId'])) {
+ $this->computeResourceId = $vals['computeResourceId'];
+ }
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getGroupComputeResourcePreference_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->computeResourceId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupResourceProfileId);
+ } 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_getGroupComputeResourcePreference_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->computeResourceId !== null) {
+ $xfer += $output->writeFieldBegin('computeResourceId', TType::STRING, 2);
+ $xfer += $output->writeString($this->computeResourceId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getGroupComputeResourcePreference_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\GroupComputeResourcePreference
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\GroupComputeResourcePreference',
+ ),
+ 1 => array(
+ 'var' => 'ire',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\InvalidRequestException',
+ ),
+ 2 => array(
+ 'var' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_getGroupComputeResourcePreference_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 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\AppCatalog\GroupResourceProfile\GroupComputeResourcePreference();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ 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->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getGroupComputeResourcePreference_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getGroupComputeResourcePolicy_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $resourcePolicyId = 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' => 'resourcePolicyId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['resourcePolicyId'])) {
+ $this->resourcePolicyId = $vals['resourcePolicyId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getGroupComputeResourcePolicy_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->resourcePolicyId);
+ } 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_getGroupComputeResourcePolicy_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->resourcePolicyId !== null) {
+ $xfer += $output->writeFieldBegin('resourcePolicyId', TType::STRING, 2);
+ $xfer += $output->writeString($this->resourcePolicyId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getGroupComputeResourcePolicy_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\ComputeResourcePolicy
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\ComputeResourcePolicy',
+ ),
+ 1 => array(
+ 'var' => 'ire',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\InvalidRequestException',
+ ),
+ 2 => array(
+ 'var' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_getGroupComputeResourcePolicy_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 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\AppCatalog\GroupResourceProfile\ComputeResourcePolicy();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ 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->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getGroupComputeResourcePolicy_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getBatchQueueResourcePolicy_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $resourcePolicyId = 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' => 'resourcePolicyId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['resourcePolicyId'])) {
+ $this->resourcePolicyId = $vals['resourcePolicyId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getBatchQueueResourcePolicy_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->resourcePolicyId);
+ } 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_getBatchQueueResourcePolicy_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->resourcePolicyId !== null) {
+ $xfer += $output->writeFieldBegin('resourcePolicyId', TType::STRING, 2);
+ $xfer += $output->writeString($this->resourcePolicyId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getBatchQueueResourcePolicy_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\BatchQueueResourcePolicy
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\BatchQueueResourcePolicy',
+ ),
+ 1 => array(
+ 'var' => 'ire',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\InvalidRequestException',
+ ),
+ 2 => array(
+ 'var' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_getBatchQueueResourcePolicy_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 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\AppCatalog\GroupResourceProfile\BatchQueueResourcePolicy();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ 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->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getBatchQueueResourcePolicy_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getGroupComputeResourcePrefList_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = 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' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getGroupComputeResourcePrefList_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->groupResourceProfileId);
+ } 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_getGroupComputeResourcePrefList_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->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getGroupComputeResourcePrefList_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\GroupComputeResourcePreference[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\GroupComputeResourcePreference',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'ire',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\InvalidRequestException',
+ ),
+ 2 => array(
+ 'var' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_getGroupComputeResourcePrefList_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size355 = 0;
+ $_etype358 = 0;
+ $xfer += $input->readListBegin($_etype358, $_size355);
+ for ($_i359 = 0; $_i359 < $_size355; ++$_i359)
+ {
+ $elem360 = null;
+ $elem360 = new \Airavata\Model\AppCatalog\GroupResourceProfile\GroupComputeResourcePreference();
+ $xfer += $elem360->read($input);
+ $this->success []= $elem360;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ 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->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getGroupComputeResourcePrefList_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 $iter361)
+ {
+ $xfer += $iter361->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getGroupBatchQueueResourcePolicyList_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = 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' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getGroupBatchQueueResourcePolicyList_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->groupResourceProfileId);
+ } 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_getGroupBatchQueueResourcePolicyList_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->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getGroupBatchQueueResourcePolicyList_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\BatchQueueResourcePolicy[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\BatchQueueResourcePolicy',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'ire',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\InvalidRequestException',
+ ),
+ 2 => array(
+ 'var' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_getGroupBatchQueueResourcePolicyList_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size362 = 0;
+ $_etype365 = 0;
+ $xfer += $input->readListBegin($_etype365, $_size362);
+ for ($_i366 = 0; $_i366 < $_size362; ++$_i366)
+ {
+ $elem367 = null;
+ $elem367 = new \Airavata\Model\AppCatalog\GroupResourceProfile\BatchQueueResourcePolicy();
+ $xfer += $elem367->read($input);
+ $this->success []= $elem367;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ 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->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getGroupBatchQueueResourcePolicyList_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 $iter368)
+ {
+ $xfer += $iter368->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getGroupComputeResourcePolicyList_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = 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' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getGroupComputeResourcePolicyList_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->groupResourceProfileId);
+ } 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_getGroupComputeResourcePolicyList_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->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getGroupComputeResourcePolicyList_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\ComputeResourcePolicy[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\ComputeResourcePolicy',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'ire',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\InvalidRequestException',
+ ),
+ 2 => array(
+ 'var' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_getGroupComputeResourcePolicyList_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size369 = 0;
+ $_etype372 = 0;
+ $xfer += $input->readListBegin($_etype372, $_size369);
+ for ($_i373 = 0; $_i373 < $_size369; ++$_i373)
+ {
+ $elem374 = null;
+ $elem374 = new \Airavata\Model\AppCatalog\GroupResourceProfile\ComputeResourcePolicy();
+ $xfer += $elem374->read($input);
+ $this->success []= $elem374;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ 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->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getGroupComputeResourcePolicyList_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 $iter375)
+ {
+ $xfer += $iter375->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
+class Airavata_getGatewayGroups_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = 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',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Airavata_getGatewayGroups_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;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getGatewayGroups_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();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class Airavata_getGatewayGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\AppCatalog\GatewayGroups\GatewayGroups
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\API\Error\InvalidRequestException
+ */
+ public $ire = 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::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GatewayGroups\GatewayGroups',
+ ),
+ 1 => array(
+ 'var' => 'ire',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\InvalidRequestException',
+ ),
+ 2 => array(
+ 'var' => 'ace',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataClientException',
+ ),
+ 3 => array(
+ 'var' => 'ase',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AiravataSystemException',
+ ),
+ 4 => 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['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_getGatewayGroups_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 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\AppCatalog\GatewayGroups\GatewayGroups();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ 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->ace = new \Airavata\API\Error\AiravataClientException();
+ $xfer += $this->ace->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->ase = new \Airavata\API\Error\AiravataSystemException();
+ $xfer += $this->ase->read($input);
+ } else {
+ $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;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('Airavata_getGatewayGroups_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ire !== null) {
+ $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
+ $xfer += $this->ire->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ace !== null) {
+ $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2);
+ $xfer += $this->ace->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ase !== null) {
+ $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3);
+ $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;
+ }
+
+}
+
diff --git a/app/libraries/Airavata/API/Error/Types.php b/app/libraries/Airavata/API/Error/Types.php
index 0b5258d..97cedfa 100644
--- a/app/libraries/Airavata/API/Error/Types.php
+++ b/app/libraries/Airavata/API/Error/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\API\Error;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/API/Sharing/SharingRegistryService.php b/app/libraries/Airavata/API/Sharing/SharingRegistryService.php
new file mode 100644
index 0000000..3c99e58
--- /dev/null
+++ b/app/libraries/Airavata/API/Sharing/SharingRegistryService.php
@@ -0,0 +1,15736 @@
+<?php
+namespace Airavata\API\Sharing;
+/**
+ * Autogenerated by Thrift Compiler (0.10.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+use Thrift\Base\TBase;
+use Thrift\Type\TType;
+use Thrift\Type\TMessageType;
+use Thrift\Exception\TException;
+use Thrift\Exception\TProtocolException;
+use Thrift\Protocol\TProtocol;
+use Thrift\Protocol\TBinaryProtocolAccelerated;
+use Thrift\Exception\TApplicationException;
+
+
+interface SharingRegistryServiceIf {
+ /**
+ * <p>API method to create a new domain</p>
+ *
+ * @param \Airavata\Model\Sharing\Domain $domain
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ * @throws \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public function createDomain(\Airavata\Model\Sharing\Domain $domain);
+ /**
+ * <p>API method to update a domain</p>
+ *
+ * @param \Airavata\Model\Sharing\Domain $domain
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updateDomain(\Airavata\Model\Sharing\Domain $domain);
+ /**
+ * <p>API method to check Domain Exists</p>
+ *
+ * @param string $domainId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isDomainExists($domainId);
+ /**
+ * <p>API method to delete domain</p>
+ *
+ * @param string $domainId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deleteDomain($domainId);
+ /**
+ * <p>API method to retrieve a domain</p>
+ *
+ * @param string $domainId
+ * @return \Airavata\Model\Sharing\Domain <p>Domain is the entity that enables multi-tenency in this componenet. Every tenant will be
+ * operating separately it's own silo which is identified by the domain id. In the current implementation domain id
+ * will be same as the domain name</p>
+ * <li>domainId : Will be generated by the server based on the domain name</li>
+ * <li><b>name</b> : A single word name that identifies the domain e.g seagrid, ultrascan</li>
+ * <li>description : A short description for the domain</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getDomain($domainId);
+ /**
+ * <p>API method to get all domain.</p>
+ *
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\Domain[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getDomains($offset, $limit);
+ /**
+ * <p>API method to register a user in the system</p>
+ *
+ * @param \Airavata\Model\Sharing\User $user
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ * @throws \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public function createUser(\Airavata\Model\Sharing\User $user);
+ /**
+ * <p>API method to update existing user</p>
+ *
+ * @param \Airavata\Model\Sharing\User $user
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updatedUser(\Airavata\Model\Sharing\User $user);
+ /**
+ * <p>API method to check User Exists</p>
+ *
+ * @param string $domainId
+ * @param string $userId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isUserExists($domainId, $userId);
+ /**
+ * <p>API method to delete user</p>
+ *
+ * @param string $domainId
+ * @param string $userId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deleteUser($domainId, $userId);
+ /**
+ * <p>API method to get a user</p>
+ *
+ * @param string $domainId
+ * @param string $userId
+ * @return \Airavata\Model\Sharing\User <p>User is the model used to register a user in the system. Minimal user information will be required to provide
+ * regarding the user.</p>
+ * <li><b>userId</b> : User id provided by the client</li>
+ * <li><b>domainId</b> : Domain id for that user</li>
+ * <li><b>userName</b> : User name for the user</li>
+ * <li><b>firstName</b> : First name of the user</li>
+ * <li><b>lastName</b> : Last name of the user</li>
+ * <li><b>email</b> : Email address of the user</li>
+ * <li>icon : A binary field for storing the user icon</li>
+ * <li>createdTime : If client provides this value then the system will use it if not the current time will be set</li>
+ * <li>updatedTime : If client provides this value then the system will use it if not the current time will be set</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getUser($domainId, $userId);
+ /**
+ * <p>API method to get a list of users in a specific domain.</p>
+ * <li>domainId : Domain id</li>
+ * <li>offset : Starting result number</li>
+ * <li>limit : Number of max results to be sent</li>
+ *
+ * @param string $domainId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\User[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getUsers($domainId, $offset, $limit);
+ /**
+ * <p>API method to create a new group</p>
+ *
+ * @param \Airavata\Model\Sharing\UserGroup $group
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function createGroup(\Airavata\Model\Sharing\UserGroup $group);
+ /**
+ * <p>API method to update a group</p>
+ *
+ * @param \Airavata\Model\Sharing\UserGroup $group
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updateGroup(\Airavata\Model\Sharing\UserGroup $group);
+ /**
+ * <p>API method to check Group Exists</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isGroupExists($domainId, $groupId);
+ /**
+ * <p>API method to delete a group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deleteGroup($domainId, $groupId);
+ /**
+ * <p>API method to get a group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @return \Airavata\Model\Sharing\UserGroup <p>User group is a collection of users.</p>
+ * <li><b>groupId</b> : Group id provided by the client</li>
+ * <li><b>domainId</b> : Domain id for this user group</li>
+ * <li><b>name</b> : Name for the user group. should be one word</li>
+ * <li>description : Short description for the group.</li>
+ * <li><b>ownerId</b> : Owner id of this group.</li>
+ * <li><b>groupType</b> : Group type (DOMAIN_LEVEL_GROUP, USER_LEVEL_GROUP)</li>
+ * <li><b>groupCardinality</b> : Group cardinality (SINGLE_USER, MULTI_USER)</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ * <li>groupAdmins : Admins for the group</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getGroup($domainId, $groupId);
+ /**
+ * <p>API method to get groups in a domainId.</p>
+ *
+ * @param string $domainId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\UserGroup[]
+ */
+ public function getGroups($domainId, $offset, $limit);
+ /**
+ * <p>API method to add list of users to a group</p>
+ *
+ * @param string $domainId
+ * @param string[] $userIds
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function addUsersToGroup($domainId, array $userIds, $groupId);
+ /**
+ * <p>API method to remove users from a group</p>
+ *
+ * @param string $domainId
+ * @param string[] $userIds
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function removeUsersFromGroup($domainId, array $userIds, $groupId);
+ /**
+ * <p>API method to transfer group ownership</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param string $newOwnerId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function transferGroupOwnership($domainId, $groupId, $newOwnerId);
+ /**
+ * <p>API method to add Admin for a group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param string[] $adminIds
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function addGroupAdmins($domainId, $groupId, array $adminIds);
+ /**
+ * <p>API method to remove Admin for a group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param string[] $adminIds
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function removeGroupAdmins($domainId, $groupId, array $adminIds);
+ /**
+ * <p>API method to check whether the user has Admin access for the group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param string $adminId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function hasAdminAccess($domainId, $groupId, $adminId);
+ /**
+ * <p>API method to check whether the user has Admin access for the group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param string $ownerId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function hasOwnerAccess($domainId, $groupId, $ownerId);
+ /**
+ * <p>API method to get list of child users in a group. Only the direct members will be returned.</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\User[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getGroupMembersOfTypeUser($domainId, $groupId, $offset, $limit);
+ /**
+ * <p>API method to get list of child groups in a group. Only the direct members will be returned.</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\UserGroup[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getGroupMembersOfTypeGroup($domainId, $groupId, $offset, $limit);
+ /**
+ * <p>API method to add a child group to a parent group.</p>
+ *
+ * @param string $domainId
+ * @param string[] $childIds
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function addChildGroupsToParentGroup($domainId, array $childIds, $groupId);
+ /**
+ * <p>API method to remove a child group from parent group.</p>
+ *
+ * @param string $domainId
+ * @param string $childId
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function removeChildGroupFromParentGroup($domainId, $childId, $groupId);
+ /**
+ * @param string $domainId
+ * @param string $userId
+ * @return \Airavata\Model\Sharing\UserGroup[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getAllMemberGroupsForUser($domainId, $userId);
+ /**
+ * <p>API method to create a new entity type</p>
+ *
+ * @param \Airavata\Model\Sharing\EntityType $entityType
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ * @throws \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public function createEntityType(\Airavata\Model\Sharing\EntityType $entityType);
+ /**
+ * <p>API method to update entity type</p>
+ *
+ * @param \Airavata\Model\Sharing\EntityType $entityType
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updateEntityType(\Airavata\Model\Sharing\EntityType $entityType);
+ /**
+ * <p>API method to check EntityType Exists</p>
+ *
+ * @param string $domainId
+ * @param string $entityTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isEntityTypeExists($domainId, $entityTypeId);
+ /**
+ * <p>API method to delete entity type</p>
+ *
+ * @param string $domainId
+ * @param string $entityTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deleteEntityType($domainId, $entityTypeId);
+ /**
+ * <p>API method to get an entity type</p>
+ *
+ * @param string $domainId
+ * @param string $entityTypeId
+ * @return \Airavata\Model\Sharing\EntityType <p>client defined entity types</p>
+ * <li><b>entityTypeId</b> : Entity type id provided by the client</li>
+ * <li><b>domainId</b> : Domain id of the domain.</li>
+ * <li><b>name</b> : Name for the entity type. Should be a single word.</li>
+ * <li>description : Short description for the entity type.</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getEntityType($domainId, $entityTypeId);
+ /**
+ * <p>API method to get entity types in a domainId.</p>
+ *
+ * @param string $domainId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\EntityType[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getEntityTypes($domainId, $offset, $limit);
+ /**
+ * <p>API method to register new entity</p>
+ *
+ * @param \Airavata\Model\Sharing\Entity $entity
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function createEntity(\Airavata\Model\Sharing\Entity $entity);
+ /**
+ * <p>API method to update entity</p>
+ *
+ * @param \Airavata\Model\Sharing\Entity $entity
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updateEntity(\Airavata\Model\Sharing\Entity $entity);
+ /**
+ * <p>API method to check Entity Exists</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isEntityExists($domainId, $entityId);
+ /**
+ * <p>API method to delete entity</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deleteEntity($domainId, $entityId);
+ /**
+ * <p>API method to get entity</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @return \Airavata\Model\Sharing\Entity <p>Entity object which is used to register an entity in the system.</p>
+ * <li><b>entityId</b> : Entity id provided by the client</li>
+ * <li><b>domainId</b> : Domain id</li>
+ * <li><b>entityTypeId</b> : Entity type id</li>
+ * <li><b>ownerId</b> : Owner id</li>
+ * <li>parentEntityId : Parent entity id</li>
+ * <li><b>name</b> : Name</li>
+ * <li>description : Short description for the entity</li>
+ * <li>binaryData : Any information stored in binary format</li>
+ * <li>fullText : A string which will be considered for full text search</li>
+ * <li><b>originalEntityCreationTime</b> : When registering old records what is the original entity creation time. If not
+ * set will be default to current time</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getEntity($domainId, $entityId);
+ /**
+ * <p>API method to search entities</p>
+ *
+ * @param string $domainId
+ * @param string $userId
+ * @param \Airavata\Model\Sharing\SearchCriteria[] $filters
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\Entity[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function searchEntities($domainId, $userId, array $filters, $offset, $limit);
+ /**
+ * <p>API method to get a list of shared users given the entity id</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string $permissionTypeId
+ * @return \Airavata\Model\Sharing\User[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getListOfSharedUsers($domainId, $entityId, $permissionTypeId);
+ /**
+ * <p>API method to get a list of shared groups given the entity id</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string $permissionTypeId
+ * @return \Airavata\Model\Sharing\UserGroup[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getListOfSharedGroups($domainId, $entityId, $permissionTypeId);
+ /**
+ * <p>API method to create permission type</p>
+ *
+ * @param \Airavata\Model\Sharing\PermissionType $permissionType
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ * @throws \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public function createPermissionType(\Airavata\Model\Sharing\PermissionType $permissionType);
+ /**
+ * <p>API method to update permission type</p>
+ *
+ * @param \Airavata\Model\Sharing\PermissionType $permissionType
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updatePermissionType(\Airavata\Model\Sharing\PermissionType $permissionType);
+ /**
+ * <p>API method to check Permission Exists</p>
+ *
+ * @param string $dimainId
+ * @param string $permissionId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isPermissionExists($dimainId, $permissionId);
+ /**
+ * <p>API method to delete permission type</p>
+ *
+ * @param string $domainId
+ * @param string $permissionTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deletePermissionType($domainId, $permissionTypeId);
+ /**
+ * <p>API method to get permission type</p>
+ *
+ * @param string $domainId
+ * @param string $permissionTypeId
+ * @return \Airavata\Model\Sharing\PermissionType <p>Object for creating client defined permission type</p>
+ * <li><b>permissionTypeId</b> : Permission type id provided by the client</li>
+ * <li><b>domainId</b> : Domain id</li>
+ * <li><b>name</b> : Single word name for the permission</li>
+ * <li>description : Short description for the permission type</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getPermissionType($domainId, $permissionTypeId);
+ /**
+ * <p>API method to get list of permission types in a given domainId.</p>
+ *
+ * @param string $domainId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\PermissionType[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getPermissionTypes($domainId, $offset, $limit);
+ /**
+ * <p>API method to share an entity with users</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string[] $userList
+ * @param string $permissionTypeId
+ * @param bool $cascadePermission
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function shareEntityWithUsers($domainId, $entityId, array $userList, $permissionTypeId, $cascadePermission);
+ /**
+ * <p>API method to revoke sharing from a list of users</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string[] $userList
+ * @param string $permissionTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function revokeEntitySharingFromUsers($domainId, $entityId, array $userList, $permissionTypeId);
+ /**
+ * <p>API method to share an entity with list of groups</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string[] $groupList
+ * @param string $permissionTypeId
+ * @param bool $cascadePermission
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function shareEntityWithGroups($domainId, $entityId, array $groupList, $permissionTypeId, $cascadePermission);
+ /**
+ * <p>API method to revoke sharing from list of users</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string[] $groupList
+ * @param string $permissionTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function revokeEntitySharingFromGroups($domainId, $entityId, array $groupList, $permissionTypeId);
+ /**
+ * <p>API method to check whether a user has access to a specific entity</p>
+ *
+ * @param string $domainId
+ * @param string $userId
+ * @param string $entityId
+ * @param string $permissionTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function userHasAccess($domainId, $userId, $entityId, $permissionTypeId);
+}
+
+
+class SharingRegistryServiceClient implements \Airavata\API\Sharing\SharingRegistryServiceIf {
+ protected $input_ = null;
+ protected $output_ = null;
+
+ protected $seqid_ = 0;
+
+ public function __construct($input, $output=null) {
+ $this->input_ = $input;
+ $this->output_ = $output ? $output : $input;
+ }
+
+ public function createDomain(\Airavata\Model\Sharing\Domain $domain)
+ {
+ $this->send_createDomain($domain);
+ return $this->recv_createDomain();
+ }
+
+ public function send_createDomain(\Airavata\Model\Sharing\Domain $domain)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createDomain_args();
+ $args->domain = $domain;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createDomain', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createDomain', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createDomain()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createDomain_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\Sharing\SharingRegistryService_createDomain_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ if ($result->dee !== null) {
+ throw $result->dee;
+ }
+ throw new \Exception("createDomain failed: unknown result");
+ }
+
+ public function updateDomain(\Airavata\Model\Sharing\Domain $domain)
+ {
+ $this->send_updateDomain($domain);
+ return $this->recv_updateDomain();
+ }
+
+ public function send_updateDomain(\Airavata\Model\Sharing\Domain $domain)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updateDomain_args();
+ $args->domain = $domain;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updateDomain', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updateDomain', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updateDomain()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updateDomain_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\Sharing\SharingRegistryService_updateDomain_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updateDomain failed: unknown result");
+ }
+
+ public function isDomainExists($domainId)
+ {
+ $this->send_isDomainExists($domainId);
+ return $this->recv_isDomainExists();
+ }
+
+ public function send_isDomainExists($domainId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isDomainExists_args();
+ $args->domainId = $domainId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isDomainExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isDomainExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isDomainExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isDomainExists_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\Sharing\SharingRegistryService_isDomainExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isDomainExists failed: unknown result");
+ }
+
+ public function deleteDomain($domainId)
+ {
+ $this->send_deleteDomain($domainId);
+ return $this->recv_deleteDomain();
+ }
+
+ public function send_deleteDomain($domainId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deleteDomain_args();
+ $args->domainId = $domainId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deleteDomain', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deleteDomain', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deleteDomain()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deleteDomain_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\Sharing\SharingRegistryService_deleteDomain_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deleteDomain failed: unknown result");
+ }
+
+ public function getDomain($domainId)
+ {
+ $this->send_getDomain($domainId);
+ return $this->recv_getDomain();
+ }
+
+ public function send_getDomain($domainId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getDomain_args();
+ $args->domainId = $domainId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getDomain', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getDomain', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getDomain()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getDomain_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\Sharing\SharingRegistryService_getDomain_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getDomain failed: unknown result");
+ }
+
+ public function getDomains($offset, $limit)
+ {
+ $this->send_getDomains($offset, $limit);
+ return $this->recv_getDomains();
+ }
+
+ public function send_getDomains($offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getDomains_args();
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getDomains', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getDomains', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getDomains()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getDomains_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\Sharing\SharingRegistryService_getDomains_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getDomains failed: unknown result");
+ }
+
+ public function createUser(\Airavata\Model\Sharing\User $user)
+ {
+ $this->send_createUser($user);
+ return $this->recv_createUser();
+ }
+
+ public function send_createUser(\Airavata\Model\Sharing\User $user)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createUser_args();
+ $args->user = $user;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createUser_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\Sharing\SharingRegistryService_createUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ if ($result->dee !== null) {
+ throw $result->dee;
+ }
+ throw new \Exception("createUser failed: unknown result");
+ }
+
+ public function updatedUser(\Airavata\Model\Sharing\User $user)
+ {
+ $this->send_updatedUser($user);
+ return $this->recv_updatedUser();
+ }
+
+ public function send_updatedUser(\Airavata\Model\Sharing\User $user)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updatedUser_args();
+ $args->user = $user;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updatedUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updatedUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updatedUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updatedUser_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\Sharing\SharingRegistryService_updatedUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updatedUser failed: unknown result");
+ }
+
+ public function isUserExists($domainId, $userId)
+ {
+ $this->send_isUserExists($domainId, $userId);
+ return $this->recv_isUserExists();
+ }
+
+ public function send_isUserExists($domainId, $userId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isUserExists_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isUserExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isUserExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isUserExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isUserExists_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\Sharing\SharingRegistryService_isUserExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isUserExists failed: unknown result");
+ }
+
+ public function deleteUser($domainId, $userId)
+ {
+ $this->send_deleteUser($domainId, $userId);
+ return $this->recv_deleteUser();
+ }
+
+ public function send_deleteUser($domainId, $userId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deleteUser_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deleteUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deleteUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deleteUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deleteUser_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\Sharing\SharingRegistryService_deleteUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deleteUser failed: unknown result");
+ }
+
+ public function getUser($domainId, $userId)
+ {
+ $this->send_getUser($domainId, $userId);
+ return $this->recv_getUser();
+ }
+
+ public function send_getUser($domainId, $userId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getUser_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getUser_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\Sharing\SharingRegistryService_getUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getUser failed: unknown result");
+ }
+
+ public function getUsers($domainId, $offset, $limit)
+ {
+ $this->send_getUsers($domainId, $offset, $limit);
+ return $this->recv_getUsers();
+ }
+
+ public function send_getUsers($domainId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getUsers_args();
+ $args->domainId = $domainId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getUsers', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getUsers', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getUsers()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getUsers_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\Sharing\SharingRegistryService_getUsers_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getUsers failed: unknown result");
+ }
+
+ public function createGroup(\Airavata\Model\Sharing\UserGroup $group)
+ {
+ $this->send_createGroup($group);
+ return $this->recv_createGroup();
+ }
+
+ public function send_createGroup(\Airavata\Model\Sharing\UserGroup $group)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createGroup_args();
+ $args->group = $group;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createGroup_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\Sharing\SharingRegistryService_createGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("createGroup failed: unknown result");
+ }
+
+ public function updateGroup(\Airavata\Model\Sharing\UserGroup $group)
+ {
+ $this->send_updateGroup($group);
+ return $this->recv_updateGroup();
+ }
+
+ public function send_updateGroup(\Airavata\Model\Sharing\UserGroup $group)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updateGroup_args();
+ $args->group = $group;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updateGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updateGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updateGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updateGroup_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\Sharing\SharingRegistryService_updateGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updateGroup failed: unknown result");
+ }
+
+ public function isGroupExists($domainId, $groupId)
+ {
+ $this->send_isGroupExists($domainId, $groupId);
+ return $this->recv_isGroupExists();
+ }
+
+ public function send_isGroupExists($domainId, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isGroupExists_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isGroupExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isGroupExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isGroupExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isGroupExists_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\Sharing\SharingRegistryService_isGroupExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isGroupExists failed: unknown result");
+ }
+
+ public function deleteGroup($domainId, $groupId)
+ {
+ $this->send_deleteGroup($domainId, $groupId);
+ return $this->recv_deleteGroup();
+ }
+
+ public function send_deleteGroup($domainId, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deleteGroup_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deleteGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deleteGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deleteGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deleteGroup_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\Sharing\SharingRegistryService_deleteGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deleteGroup failed: unknown result");
+ }
+
+ public function getGroup($domainId, $groupId)
+ {
+ $this->send_getGroup($domainId, $groupId);
+ return $this->recv_getGroup();
+ }
+
+ public function send_getGroup($domainId, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getGroup_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getGroup_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\Sharing\SharingRegistryService_getGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getGroup failed: unknown result");
+ }
+
+ public function getGroups($domainId, $offset, $limit)
+ {
+ $this->send_getGroups($domainId, $offset, $limit);
+ return $this->recv_getGroups();
+ }
+
+ public function send_getGroups($domainId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getGroups_args();
+ $args->domainId = $domainId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroups()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getGroups_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\Sharing\SharingRegistryService_getGroups_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ throw new \Exception("getGroups failed: unknown result");
+ }
+
+ public function addUsersToGroup($domainId, array $userIds, $groupId)
+ {
+ $this->send_addUsersToGroup($domainId, $userIds, $groupId);
+ return $this->recv_addUsersToGroup();
+ }
+
+ public function send_addUsersToGroup($domainId, array $userIds, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_addUsersToGroup_args();
+ $args->domainId = $domainId;
+ $args->userIds = $userIds;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'addUsersToGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('addUsersToGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_addUsersToGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_addUsersToGroup_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\Sharing\SharingRegistryService_addUsersToGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("addUsersToGroup failed: unknown result");
+ }
+
+ public function removeUsersFromGroup($domainId, array $userIds, $groupId)
+ {
+ $this->send_removeUsersFromGroup($domainId, $userIds, $groupId);
+ return $this->recv_removeUsersFromGroup();
+ }
+
+ public function send_removeUsersFromGroup($domainId, array $userIds, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_removeUsersFromGroup_args();
+ $args->domainId = $domainId;
+ $args->userIds = $userIds;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'removeUsersFromGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('removeUsersFromGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_removeUsersFromGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_removeUsersFromGroup_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\Sharing\SharingRegistryService_removeUsersFromGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("removeUsersFromGroup failed: unknown result");
+ }
+
+ public function transferGroupOwnership($domainId, $groupId, $newOwnerId)
+ {
+ $this->send_transferGroupOwnership($domainId, $groupId, $newOwnerId);
+ return $this->recv_transferGroupOwnership();
+ }
+
+ public function send_transferGroupOwnership($domainId, $groupId, $newOwnerId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_transferGroupOwnership_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->newOwnerId = $newOwnerId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'transferGroupOwnership', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('transferGroupOwnership', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_transferGroupOwnership()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_transferGroupOwnership_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\Sharing\SharingRegistryService_transferGroupOwnership_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("transferGroupOwnership failed: unknown result");
+ }
+
+ public function addGroupAdmins($domainId, $groupId, array $adminIds)
+ {
+ $this->send_addGroupAdmins($domainId, $groupId, $adminIds);
+ return $this->recv_addGroupAdmins();
+ }
+
+ public function send_addGroupAdmins($domainId, $groupId, array $adminIds)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_addGroupAdmins_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->adminIds = $adminIds;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'addGroupAdmins', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('addGroupAdmins', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_addGroupAdmins()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_addGroupAdmins_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\Sharing\SharingRegistryService_addGroupAdmins_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("addGroupAdmins failed: unknown result");
+ }
+
+ public function removeGroupAdmins($domainId, $groupId, array $adminIds)
+ {
+ $this->send_removeGroupAdmins($domainId, $groupId, $adminIds);
+ return $this->recv_removeGroupAdmins();
+ }
+
+ public function send_removeGroupAdmins($domainId, $groupId, array $adminIds)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_removeGroupAdmins_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->adminIds = $adminIds;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'removeGroupAdmins', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('removeGroupAdmins', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_removeGroupAdmins()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_removeGroupAdmins_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\Sharing\SharingRegistryService_removeGroupAdmins_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("removeGroupAdmins failed: unknown result");
+ }
+
+ public function hasAdminAccess($domainId, $groupId, $adminId)
+ {
+ $this->send_hasAdminAccess($domainId, $groupId, $adminId);
+ return $this->recv_hasAdminAccess();
+ }
+
+ public function send_hasAdminAccess($domainId, $groupId, $adminId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_hasAdminAccess_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->adminId = $adminId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'hasAdminAccess', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('hasAdminAccess', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_hasAdminAccess()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_hasAdminAccess_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\Sharing\SharingRegistryService_hasAdminAccess_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("hasAdminAccess failed: unknown result");
+ }
+
+ public function hasOwnerAccess($domainId, $groupId, $ownerId)
+ {
+ $this->send_hasOwnerAccess($domainId, $groupId, $ownerId);
+ return $this->recv_hasOwnerAccess();
+ }
+
+ public function send_hasOwnerAccess($domainId, $groupId, $ownerId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_hasOwnerAccess_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->ownerId = $ownerId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'hasOwnerAccess', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('hasOwnerAccess', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_hasOwnerAccess()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_hasOwnerAccess_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\Sharing\SharingRegistryService_hasOwnerAccess_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("hasOwnerAccess failed: unknown result");
+ }
+
+ public function getGroupMembersOfTypeUser($domainId, $groupId, $offset, $limit)
+ {
+ $this->send_getGroupMembersOfTypeUser($domainId, $groupId, $offset, $limit);
+ return $this->recv_getGroupMembersOfTypeUser();
+ }
+
+ public function send_getGroupMembersOfTypeUser($domainId, $groupId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getGroupMembersOfTypeUser_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroupMembersOfTypeUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroupMembersOfTypeUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroupMembersOfTypeUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getGroupMembersOfTypeUser_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\Sharing\SharingRegistryService_getGroupMembersOfTypeUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getGroupMembersOfTypeUser failed: unknown result");
+ }
+
+ public function getGroupMembersOfTypeGroup($domainId, $groupId, $offset, $limit)
+ {
+ $this->send_getGroupMembersOfTypeGroup($domainId, $groupId, $offset, $limit);
+ return $this->recv_getGroupMembersOfTypeGroup();
+ }
+
+ public function send_getGroupMembersOfTypeGroup($domainId, $groupId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getGroupMembersOfTypeGroup_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroupMembersOfTypeGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroupMembersOfTypeGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroupMembersOfTypeGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getGroupMembersOfTypeGroup_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\Sharing\SharingRegistryService_getGroupMembersOfTypeGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getGroupMembersOfTypeGroup failed: unknown result");
+ }
+
+ public function addChildGroupsToParentGroup($domainId, array $childIds, $groupId)
+ {
+ $this->send_addChildGroupsToParentGroup($domainId, $childIds, $groupId);
+ return $this->recv_addChildGroupsToParentGroup();
+ }
+
+ public function send_addChildGroupsToParentGroup($domainId, array $childIds, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_addChildGroupsToParentGroup_args();
+ $args->domainId = $domainId;
+ $args->childIds = $childIds;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'addChildGroupsToParentGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('addChildGroupsToParentGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_addChildGroupsToParentGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_addChildGroupsToParentGroup_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\Sharing\SharingRegistryService_addChildGroupsToParentGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("addChildGroupsToParentGroup failed: unknown result");
+ }
+
+ public function removeChildGroupFromParentGroup($domainId, $childId, $groupId)
+ {
+ $this->send_removeChildGroupFromParentGroup($domainId, $childId, $groupId);
+ return $this->recv_removeChildGroupFromParentGroup();
+ }
+
+ public function send_removeChildGroupFromParentGroup($domainId, $childId, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_removeChildGroupFromParentGroup_args();
+ $args->domainId = $domainId;
+ $args->childId = $childId;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'removeChildGroupFromParentGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('removeChildGroupFromParentGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_removeChildGroupFromParentGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_removeChildGroupFromParentGroup_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\Sharing\SharingRegistryService_removeChildGroupFromParentGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("removeChildGroupFromParentGroup failed: unknown result");
+ }
+
+ public function getAllMemberGroupsForUser($domainId, $userId)
+ {
+ $this->send_getAllMemberGroupsForUser($domainId, $userId);
+ return $this->recv_getAllMemberGroupsForUser();
+ }
+
+ public function send_getAllMemberGroupsForUser($domainId, $userId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getAllMemberGroupsForUser_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getAllMemberGroupsForUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getAllMemberGroupsForUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getAllMemberGroupsForUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getAllMemberGroupsForUser_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\Sharing\SharingRegistryService_getAllMemberGroupsForUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getAllMemberGroupsForUser failed: unknown result");
+ }
+
+ public function createEntityType(\Airavata\Model\Sharing\EntityType $entityType)
+ {
+ $this->send_createEntityType($entityType);
+ return $this->recv_createEntityType();
+ }
+
+ public function send_createEntityType(\Airavata\Model\Sharing\EntityType $entityType)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createEntityType_args();
+ $args->entityType = $entityType;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createEntityType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createEntityType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createEntityType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createEntityType_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\Sharing\SharingRegistryService_createEntityType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ if ($result->dee !== null) {
+ throw $result->dee;
+ }
+ throw new \Exception("createEntityType failed: unknown result");
+ }
+
+ public function updateEntityType(\Airavata\Model\Sharing\EntityType $entityType)
+ {
+ $this->send_updateEntityType($entityType);
+ return $this->recv_updateEntityType();
+ }
+
+ public function send_updateEntityType(\Airavata\Model\Sharing\EntityType $entityType)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updateEntityType_args();
+ $args->entityType = $entityType;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updateEntityType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updateEntityType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updateEntityType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updateEntityType_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\Sharing\SharingRegistryService_updateEntityType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updateEntityType failed: unknown result");
+ }
+
+ public function isEntityTypeExists($domainId, $entityTypeId)
+ {
+ $this->send_isEntityTypeExists($domainId, $entityTypeId);
+ return $this->recv_isEntityTypeExists();
+ }
+
+ public function send_isEntityTypeExists($domainId, $entityTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isEntityTypeExists_args();
+ $args->domainId = $domainId;
+ $args->entityTypeId = $entityTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isEntityTypeExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isEntityTypeExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isEntityTypeExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isEntityTypeExists_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\Sharing\SharingRegistryService_isEntityTypeExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isEntityTypeExists failed: unknown result");
+ }
+
+ public function deleteEntityType($domainId, $entityTypeId)
+ {
+ $this->send_deleteEntityType($domainId, $entityTypeId);
+ return $this->recv_deleteEntityType();
+ }
+
+ public function send_deleteEntityType($domainId, $entityTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deleteEntityType_args();
+ $args->domainId = $domainId;
+ $args->entityTypeId = $entityTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deleteEntityType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deleteEntityType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deleteEntityType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deleteEntityType_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\Sharing\SharingRegistryService_deleteEntityType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deleteEntityType failed: unknown result");
+ }
+
+ public function getEntityType($domainId, $entityTypeId)
+ {
+ $this->send_getEntityType($domainId, $entityTypeId);
+ return $this->recv_getEntityType();
+ }
+
+ public function send_getEntityType($domainId, $entityTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getEntityType_args();
+ $args->domainId = $domainId;
+ $args->entityTypeId = $entityTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getEntityType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getEntityType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getEntityType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getEntityType_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\Sharing\SharingRegistryService_getEntityType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getEntityType failed: unknown result");
+ }
+
+ public function getEntityTypes($domainId, $offset, $limit)
+ {
+ $this->send_getEntityTypes($domainId, $offset, $limit);
+ return $this->recv_getEntityTypes();
+ }
+
+ public function send_getEntityTypes($domainId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getEntityTypes_args();
+ $args->domainId = $domainId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getEntityTypes', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getEntityTypes', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getEntityTypes()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getEntityTypes_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\Sharing\SharingRegistryService_getEntityTypes_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getEntityTypes failed: unknown result");
+ }
+
+ public function createEntity(\Airavata\Model\Sharing\Entity $entity)
+ {
+ $this->send_createEntity($entity);
+ return $this->recv_createEntity();
+ }
+
+ public function send_createEntity(\Airavata\Model\Sharing\Entity $entity)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createEntity_args();
+ $args->entity = $entity;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createEntity', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createEntity', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createEntity()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createEntity_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\Sharing\SharingRegistryService_createEntity_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("createEntity failed: unknown result");
+ }
+
+ public function updateEntity(\Airavata\Model\Sharing\Entity $entity)
+ {
+ $this->send_updateEntity($entity);
+ return $this->recv_updateEntity();
+ }
+
+ public function send_updateEntity(\Airavata\Model\Sharing\Entity $entity)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updateEntity_args();
+ $args->entity = $entity;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updateEntity', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updateEntity', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updateEntity()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updateEntity_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\Sharing\SharingRegistryService_updateEntity_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updateEntity failed: unknown result");
+ }
+
+ public function isEntityExists($domainId, $entityId)
+ {
+ $this->send_isEntityExists($domainId, $entityId);
+ return $this->recv_isEntityExists();
+ }
+
+ public function send_isEntityExists($domainId, $entityId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isEntityExists_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isEntityExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isEntityExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isEntityExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isEntityExists_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\Sharing\SharingRegistryService_isEntityExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isEntityExists failed: unknown result");
+ }
+
+ public function deleteEntity($domainId, $entityId)
+ {
+ $this->send_deleteEntity($domainId, $entityId);
+ return $this->recv_deleteEntity();
+ }
+
+ public function send_deleteEntity($domainId, $entityId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deleteEntity_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deleteEntity', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deleteEntity', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deleteEntity()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deleteEntity_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\Sharing\SharingRegistryService_deleteEntity_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deleteEntity failed: unknown result");
+ }
+
+ public function getEntity($domainId, $entityId)
+ {
+ $this->send_getEntity($domainId, $entityId);
+ return $this->recv_getEntity();
+ }
+
+ public function send_getEntity($domainId, $entityId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getEntity_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getEntity', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getEntity', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getEntity()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getEntity_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\Sharing\SharingRegistryService_getEntity_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getEntity failed: unknown result");
+ }
+
+ public function searchEntities($domainId, $userId, array $filters, $offset, $limit)
+ {
+ $this->send_searchEntities($domainId, $userId, $filters, $offset, $limit);
+ return $this->recv_searchEntities();
+ }
+
+ public function send_searchEntities($domainId, $userId, array $filters, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_searchEntities_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $args->filters = $filters;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'searchEntities', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('searchEntities', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_searchEntities()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_searchEntities_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\Sharing\SharingRegistryService_searchEntities_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("searchEntities failed: unknown result");
+ }
+
+ public function getListOfSharedUsers($domainId, $entityId, $permissionTypeId)
+ {
+ $this->send_getListOfSharedUsers($domainId, $entityId, $permissionTypeId);
+ return $this->recv_getListOfSharedUsers();
+ }
+
+ public function send_getListOfSharedUsers($domainId, $entityId, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getListOfSharedUsers_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getListOfSharedUsers', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getListOfSharedUsers', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getListOfSharedUsers()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getListOfSharedUsers_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\Sharing\SharingRegistryService_getListOfSharedUsers_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getListOfSharedUsers failed: unknown result");
+ }
+
+ public function getListOfSharedGroups($domainId, $entityId, $permissionTypeId)
+ {
+ $this->send_getListOfSharedGroups($domainId, $entityId, $permissionTypeId);
+ return $this->recv_getListOfSharedGroups();
+ }
+
+ public function send_getListOfSharedGroups($domainId, $entityId, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getListOfSharedGroups_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getListOfSharedGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getListOfSharedGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getListOfSharedGroups()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getListOfSharedGroups_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\Sharing\SharingRegistryService_getListOfSharedGroups_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getListOfSharedGroups failed: unknown result");
+ }
+
+ public function createPermissionType(\Airavata\Model\Sharing\PermissionType $permissionType)
+ {
+ $this->send_createPermissionType($permissionType);
+ return $this->recv_createPermissionType();
+ }
+
+ public function send_createPermissionType(\Airavata\Model\Sharing\PermissionType $permissionType)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createPermissionType_args();
+ $args->permissionType = $permissionType;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createPermissionType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createPermissionType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createPermissionType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createPermissionType_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\Sharing\SharingRegistryService_createPermissionType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ if ($result->dee !== null) {
+ throw $result->dee;
+ }
+ throw new \Exception("createPermissionType failed: unknown result");
+ }
+
+ public function updatePermissionType(\Airavata\Model\Sharing\PermissionType $permissionType)
+ {
+ $this->send_updatePermissionType($permissionType);
+ return $this->recv_updatePermissionType();
+ }
+
+ public function send_updatePermissionType(\Airavata\Model\Sharing\PermissionType $permissionType)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updatePermissionType_args();
+ $args->permissionType = $permissionType;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updatePermissionType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updatePermissionType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updatePermissionType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updatePermissionType_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\Sharing\SharingRegistryService_updatePermissionType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updatePermissionType failed: unknown result");
+ }
+
+ public function isPermissionExists($dimainId, $permissionId)
+ {
+ $this->send_isPermissionExists($dimainId, $permissionId);
+ return $this->recv_isPermissionExists();
+ }
+
+ public function send_isPermissionExists($dimainId, $permissionId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isPermissionExists_args();
+ $args->dimainId = $dimainId;
+ $args->permissionId = $permissionId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isPermissionExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isPermissionExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isPermissionExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isPermissionExists_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\Sharing\SharingRegistryService_isPermissionExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isPermissionExists failed: unknown result");
+ }
+
+ public function deletePermissionType($domainId, $permissionTypeId)
+ {
+ $this->send_deletePermissionType($domainId, $permissionTypeId);
+ return $this->recv_deletePermissionType();
+ }
+
+ public function send_deletePermissionType($domainId, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deletePermissionType_args();
+ $args->domainId = $domainId;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deletePermissionType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deletePermissionType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deletePermissionType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deletePermissionType_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\Sharing\SharingRegistryService_deletePermissionType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deletePermissionType failed: unknown result");
+ }
+
+ public function getPermissionType($domainId, $permissionTypeId)
+ {
+ $this->send_getPermissionType($domainId, $permissionTypeId);
+ return $this->recv_getPermissionType();
+ }
+
+ public function send_getPermissionType($domainId, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getPermissionType_args();
+ $args->domainId = $domainId;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getPermissionType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getPermissionType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getPermissionType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getPermissionType_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\Sharing\SharingRegistryService_getPermissionType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getPermissionType failed: unknown result");
+ }
+
+ public function getPermissionTypes($domainId, $offset, $limit)
+ {
+ $this->send_getPermissionTypes($domainId, $offset, $limit);
+ return $this->recv_getPermissionTypes();
+ }
+
+ public function send_getPermissionTypes($domainId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getPermissionTypes_args();
+ $args->domainId = $domainId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getPermissionTypes', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getPermissionTypes', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getPermissionTypes()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getPermissionTypes_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\Sharing\SharingRegistryService_getPermissionTypes_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getPermissionTypes failed: unknown result");
+ }
+
+ public function shareEntityWithUsers($domainId, $entityId, array $userList, $permissionTypeId, $cascadePermission)
+ {
+ $this->send_shareEntityWithUsers($domainId, $entityId, $userList, $permissionTypeId, $cascadePermission);
+ return $this->recv_shareEntityWithUsers();
+ }
+
+ public function send_shareEntityWithUsers($domainId, $entityId, array $userList, $permissionTypeId, $cascadePermission)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_shareEntityWithUsers_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->userList = $userList;
+ $args->permissionTypeId = $permissionTypeId;
+ $args->cascadePermission = $cascadePermission;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'shareEntityWithUsers', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('shareEntityWithUsers', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_shareEntityWithUsers()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_shareEntityWithUsers_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\Sharing\SharingRegistryService_shareEntityWithUsers_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("shareEntityWithUsers failed: unknown result");
+ }
+
+ public function revokeEntitySharingFromUsers($domainId, $entityId, array $userList, $permissionTypeId)
+ {
+ $this->send_revokeEntitySharingFromUsers($domainId, $entityId, $userList, $permissionTypeId);
+ return $this->recv_revokeEntitySharingFromUsers();
+ }
+
+ public function send_revokeEntitySharingFromUsers($domainId, $entityId, array $userList, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_revokeEntitySharingFromUsers_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->userList = $userList;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'revokeEntitySharingFromUsers', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('revokeEntitySharingFromUsers', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_revokeEntitySharingFromUsers()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_revokeEntitySharingFromUsers_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\Sharing\SharingRegistryService_revokeEntitySharingFromUsers_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("revokeEntitySharingFromUsers failed: unknown result");
+ }
+
+ public function shareEntityWithGroups($domainId, $entityId, array $groupList, $permissionTypeId, $cascadePermission)
+ {
+ $this->send_shareEntityWithGroups($domainId, $entityId, $groupList, $permissionTypeId, $cascadePermission);
+ return $this->recv_shareEntityWithGroups();
+ }
+
+ public function send_shareEntityWithGroups($domainId, $entityId, array $groupList, $permissionTypeId, $cascadePermission)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_shareEntityWithGroups_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->groupList = $groupList;
+ $args->permissionTypeId = $permissionTypeId;
+ $args->cascadePermission = $cascadePermission;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'shareEntityWithGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('shareEntityWithGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_shareEntityWithGroups()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_shareEntityWithGroups_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\Sharing\SharingRegistryService_shareEntityWithGroups_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("shareEntityWithGroups failed: unknown result");
+ }
+
+ public function revokeEntitySharingFromGroups($domainId, $entityId, array $groupList, $permissionTypeId)
+ {
+ $this->send_revokeEntitySharingFromGroups($domainId, $entityId, $groupList, $permissionTypeId);
+ return $this->recv_revokeEntitySharingFromGroups();
+ }
+
+ public function send_revokeEntitySharingFromGroups($domainId, $entityId, array $groupList, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_revokeEntitySharingFromGroups_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->groupList = $groupList;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'revokeEntitySharingFromGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('revokeEntitySharingFromGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_revokeEntitySharingFromGroups()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_revokeEntitySharingFromGroups_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\Sharing\SharingRegistryService_revokeEntitySharingFromGroups_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("revokeEntitySharingFromGroups failed: unknown result");
+ }
+
+ public function userHasAccess($domainId, $userId, $entityId, $permissionTypeId)
+ {
+ $this->send_userHasAccess($domainId, $userId, $entityId, $permissionTypeId);
+ return $this->recv_userHasAccess();
+ }
+
+ public function send_userHasAccess($domainId, $userId, $entityId, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_userHasAccess_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $args->entityId = $entityId;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'userHasAccess', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('userHasAccess', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_userHasAccess()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_userHasAccess_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\Sharing\SharingRegistryService_userHasAccess_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("userHasAccess failed: unknown result");
+ }
+
+}
+
+
+// HELPER FUNCTIONS AND STRUCTURES
+
+class SharingRegistryService_createDomain_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Domain
+ */
+ public $domain = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domain',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Domain',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domain'])) {
+ $this->domain = $vals['domain'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createDomain_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->domain = new \Airavata\Model\Sharing\Domain();
+ $xfer += $this->domain->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('SharingRegistryService_createDomain_args');
+ if ($this->domain !== null) {
+ if (!is_object($this->domain)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('domain', TType::STRUCT, 1);
+ $xfer += $this->domain->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createDomain_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+ /**
+ * @var \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public $dee = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ 2 => array(
+ 'var' => 'dee',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\DuplicateEntryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ if (isset($vals['dee'])) {
+ $this->dee = $vals['dee'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createDomain_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 0:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->dee = new \Airavata\Model\Sharing\DuplicateEntryException();
+ $xfer += $this->dee->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('SharingRegistryService_createDomain_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->dee !== null) {
+ $xfer += $output->writeFieldBegin('dee', TType::STRUCT, 2);
+ $xfer += $this->dee->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateDomain_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Domain
+ */
+ public $domain = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domain',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Domain',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domain'])) {
+ $this->domain = $vals['domain'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateDomain_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->domain = new \Airavata\Model\Sharing\Domain();
+ $xfer += $this->domain->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('SharingRegistryService_updateDomain_args');
+ if ($this->domain !== null) {
+ if (!is_object($this->domain)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('domain', TType::STRUCT, 1);
+ $xfer += $this->domain->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateDomain_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateDomain_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updateDomain_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isDomainExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isDomainExists_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } 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('SharingRegistryService_isDomainExists_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isDomainExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isDomainExists_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isDomainExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteDomain_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteDomain_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } 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('SharingRegistryService_deleteDomain_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteDomain_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteDomain_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deleteDomain_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getDomain_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getDomain_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } 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('SharingRegistryService_getDomain_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getDomain_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Domain
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Domain',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getDomain_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 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\Domain();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getDomain_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getDomains_args {
+ static $_TSPEC;
+
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 2 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getDomains_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::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getDomains_args');
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 1);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 2);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getDomains_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Domain[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ 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\Sharing\Domain',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getDomains_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size0 = 0;
+ $_etype3 = 0;
+ $xfer += $input->readListBegin($_etype3, $_size0);
+ for ($_i4 = 0; $_i4 < $_size0; ++$_i4)
+ {
+ $elem5 = null;
+ $elem5 = new \Airavata\Model\Sharing\Domain();
+ $xfer += $elem5->read($input);
+ $this->success []= $elem5;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getDomains_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 $iter6)
+ {
+ $xfer += $iter6->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User
+ */
+ public $user = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'user',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\User',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['user'])) {
+ $this->user = $vals['user'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createUser_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->user = new \Airavata\Model\Sharing\User();
+ $xfer += $this->user->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('SharingRegistryService_createUser_args');
+ if ($this->user !== null) {
+ if (!is_object($this->user)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('user', TType::STRUCT, 1);
+ $xfer += $this->user->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+ /**
+ * @var \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public $dee = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ 2 => array(
+ 'var' => 'dee',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\DuplicateEntryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ if (isset($vals['dee'])) {
+ $this->dee = $vals['dee'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createUser_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 0:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->dee = new \Airavata\Model\Sharing\DuplicateEntryException();
+ $xfer += $this->dee->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('SharingRegistryService_createUser_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->dee !== null) {
+ $xfer += $output->writeFieldBegin('dee', TType::STRUCT, 2);
+ $xfer += $this->dee->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updatedUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User
+ */
+ public $user = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'user',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\User',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['user'])) {
+ $this->user = $vals['user'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updatedUser_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->user = new \Airavata\Model\Sharing\User();
+ $xfer += $this->user->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('SharingRegistryService_updatedUser_args');
+ if ($this->user !== null) {
+ if (!is_object($this->user)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('user', TType::STRUCT, 1);
+ $xfer += $this->user->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updatedUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updatedUser_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updatedUser_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isUserExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isUserExists_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } 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('SharingRegistryService_isUserExists_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isUserExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isUserExists_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isUserExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteUser_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } 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('SharingRegistryService_deleteUser_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteUser_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deleteUser_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getUser_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } 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('SharingRegistryService_getUser_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\User',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getUser_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 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\User();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getUser_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getUsers_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 3 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getUsers_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getUsers_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 2);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 3);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getUsers_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ 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\Sharing\User',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getUsers_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size7 = 0;
+ $_etype10 = 0;
+ $xfer += $input->readListBegin($_etype10, $_size7);
+ for ($_i11 = 0; $_i11 < $_size7; ++$_i11)
+ {
+ $elem12 = null;
+ $elem12 = new \Airavata\Model\Sharing\User();
+ $xfer += $elem12->read($input);
+ $this->success []= $elem12;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getUsers_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 $iter13)
+ {
+ $xfer += $iter13->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup
+ */
+ public $group = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'group',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\UserGroup',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['group'])) {
+ $this->group = $vals['group'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createGroup_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->group = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $this->group->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('SharingRegistryService_createGroup_args');
+ if ($this->group !== null) {
+ if (!is_object($this->group)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('group', TType::STRUCT, 1);
+ $xfer += $this->group->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createGroup_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 0:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_createGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup
+ */
+ public $group = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'group',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\UserGroup',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['group'])) {
+ $this->group = $vals['group'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateGroup_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->group = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $this->group->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('SharingRegistryService_updateGroup_args');
+ if ($this->group !== null) {
+ if (!is_object($this->group)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('group', TType::STRUCT, 1);
+ $xfer += $this->group->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateGroup_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updateGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isGroupExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isGroupExists_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_isGroupExists_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isGroupExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isGroupExists_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isGroupExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteGroup_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_deleteGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteGroup_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deleteGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroup_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_getGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\UserGroup',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroup_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 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getGroup_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroups_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 3 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroups_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getGroups_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 2);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 3);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup[]
+ */
+ public $success = null;
+
+ 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\Sharing\UserGroup',
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroups_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size14 = 0;
+ $_etype17 = 0;
+ $xfer += $input->readListBegin($_etype17, $_size14);
+ for ($_i18 = 0; $_i18 < $_size14; ++$_i18)
+ {
+ $elem19 = null;
+ $elem19 = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $elem19->read($input);
+ $this->success []= $elem19;
+ }
+ $xfer += $input->readListEnd();
+ } 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('SharingRegistryService_getGroups_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 $iter20)
+ {
+ $xfer += $iter20->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addUsersToGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string[]
+ */
+ public $userIds = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userIds'])) {
+ $this->userIds = $vals['userIds'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addUsersToGroup_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::LST) {
+ $this->userIds = array();
+ $_size21 = 0;
+ $_etype24 = 0;
+ $xfer += $input->readListBegin($_etype24, $_size21);
+ for ($_i25 = 0; $_i25 < $_size21; ++$_i25)
+ {
+ $elem26 = null;
+ $xfer += $input->readString($elem26);
+ $this->userIds []= $elem26;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_addUsersToGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userIds !== null) {
+ if (!is_array($this->userIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('userIds', TType::LST, 2);
+ {
+ $output->writeListBegin(TType::STRING, count($this->userIds));
+ {
+ foreach ($this->userIds as $iter27)
+ {
+ $xfer += $output->writeString($iter27);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addUsersToGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addUsersToGroup_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_addUsersToGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeUsersFromGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string[]
+ */
+ public $userIds = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userIds'])) {
+ $this->userIds = $vals['userIds'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeUsersFromGroup_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::LST) {
+ $this->userIds = array();
+ $_size28 = 0;
+ $_etype31 = 0;
+ $xfer += $input->readListBegin($_etype31, $_size28);
+ for ($_i32 = 0; $_i32 < $_size28; ++$_i32)
+ {
+ $elem33 = null;
+ $xfer += $input->readString($elem33);
+ $this->userIds []= $elem33;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_removeUsersFromGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userIds !== null) {
+ if (!is_array($this->userIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('userIds', TType::LST, 2);
+ {
+ $output->writeListBegin(TType::STRING, count($this->userIds));
+ {
+ foreach ($this->userIds as $iter34)
+ {
+ $xfer += $output->writeString($iter34);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeUsersFromGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeUsersFromGroup_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_removeUsersFromGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_transferGroupOwnership_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $newOwnerId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'newOwnerId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['newOwnerId'])) {
+ $this->newOwnerId = $vals['newOwnerId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_transferGroupOwnership_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->newOwnerId);
+ } 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('SharingRegistryService_transferGroupOwnership_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->newOwnerId !== null) {
+ $xfer += $output->writeFieldBegin('newOwnerId', TType::STRING, 3);
+ $xfer += $output->writeString($this->newOwnerId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_transferGroupOwnership_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_transferGroupOwnership_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_transferGroupOwnership_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addGroupAdmins_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string[]
+ */
+ public $adminIds = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'adminIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['adminIds'])) {
+ $this->adminIds = $vals['adminIds'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addGroupAdmins_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->adminIds = array();
+ $_size35 = 0;
+ $_etype38 = 0;
+ $xfer += $input->readListBegin($_etype38, $_size35);
+ for ($_i39 = 0; $_i39 < $_size35; ++$_i39)
+ {
+ $elem40 = null;
+ $xfer += $input->readString($elem40);
+ $this->adminIds []= $elem40;
+ }
+ $xfer += $input->readListEnd();
+ } 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('SharingRegistryService_addGroupAdmins_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminIds !== null) {
+ if (!is_array($this->adminIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('adminIds', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->adminIds));
+ {
+ foreach ($this->adminIds as $iter41)
+ {
+ $xfer += $output->writeString($iter41);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addGroupAdmins_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addGroupAdmins_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_addGroupAdmins_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeGroupAdmins_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string[]
+ */
+ public $adminIds = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'adminIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['adminIds'])) {
+ $this->adminIds = $vals['adminIds'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeGroupAdmins_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->adminIds = array();
+ $_size42 = 0;
+ $_etype45 = 0;
+ $xfer += $input->readListBegin($_etype45, $_size42);
+ for ($_i46 = 0; $_i46 < $_size42; ++$_i46)
+ {
+ $elem47 = null;
+ $xfer += $input->readString($elem47);
+ $this->adminIds []= $elem47;
+ }
+ $xfer += $input->readListEnd();
+ } 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('SharingRegistryService_removeGroupAdmins_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminIds !== null) {
+ if (!is_array($this->adminIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('adminIds', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->adminIds));
+ {
+ foreach ($this->adminIds as $iter48)
+ {
+ $xfer += $output->writeString($iter48);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeGroupAdmins_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeGroupAdmins_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_removeGroupAdmins_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_hasAdminAccess_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $adminId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'adminId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['adminId'])) {
+ $this->adminId = $vals['adminId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_hasAdminAccess_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->adminId);
+ } 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('SharingRegistryService_hasAdminAccess_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminId !== null) {
+ $xfer += $output->writeFieldBegin('adminId', TType::STRING, 3);
+ $xfer += $output->writeString($this->adminId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_hasAdminAccess_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_hasAdminAccess_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_hasAdminAccess_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_hasOwnerAccess_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $ownerId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'ownerId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['ownerId'])) {
+ $this->ownerId = $vals['ownerId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_hasOwnerAccess_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->ownerId);
+ } 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('SharingRegistryService_hasOwnerAccess_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ownerId !== null) {
+ $xfer += $output->writeFieldBegin('ownerId', TType::STRING, 3);
+ $xfer += $output->writeString($this->ownerId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_hasOwnerAccess_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_hasOwnerAccess_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_hasOwnerAccess_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroupMembersOfTypeUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 4 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroupMembersOfTypeUser_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getGroupMembersOfTypeUser_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 3);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 4);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroupMembersOfTypeUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ 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\Sharing\User',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroupMembersOfTypeUser_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size49 = 0;
+ $_etype52 = 0;
+ $xfer += $input->readListBegin($_etype52, $_size49);
+ for ($_i53 = 0; $_i53 < $_size49; ++$_i53)
+ {
+ $elem54 = null;
+ $elem54 = new \Airavata\Model\Sharing\User();
+ $xfer += $elem54->read($input);
+ $this->success []= $elem54;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getGroupMembersOfTypeUser_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 $iter55)
+ {
+ $xfer += $iter55->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroupMembersOfTypeGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 4 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroupMembersOfTypeGroup_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getGroupMembersOfTypeGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 3);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 4);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroupMembersOfTypeGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ 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\Sharing\UserGroup',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroupMembersOfTypeGroup_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size56 = 0;
+ $_etype59 = 0;
+ $xfer += $input->readListBegin($_etype59, $_size56);
+ for ($_i60 = 0; $_i60 < $_size56; ++$_i60)
+ {
+ $elem61 = null;
+ $elem61 = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $elem61->read($input);
+ $this->success []= $elem61;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getGroupMembersOfTypeGroup_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 $iter62)
+ {
+ $xfer += $iter62->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addChildGroupsToParentGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string[]
+ */
+ public $childIds = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'childIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['childIds'])) {
+ $this->childIds = $vals['childIds'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addChildGroupsToParentGroup_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::LST) {
+ $this->childIds = array();
+ $_size63 = 0;
+ $_etype66 = 0;
+ $xfer += $input->readListBegin($_etype66, $_size63);
+ for ($_i67 = 0; $_i67 < $_size63; ++$_i67)
+ {
+ $elem68 = null;
+ $xfer += $input->readString($elem68);
+ $this->childIds []= $elem68;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_addChildGroupsToParentGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->childIds !== null) {
+ if (!is_array($this->childIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('childIds', TType::LST, 2);
+ {
+ $output->writeListBegin(TType::STRING, count($this->childIds));
+ {
+ foreach ($this->childIds as $iter69)
+ {
+ $xfer += $output->writeString($iter69);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addChildGroupsToParentGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addChildGroupsToParentGroup_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_addChildGroupsToParentGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeChildGroupFromParentGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $childId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'childId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['childId'])) {
+ $this->childId = $vals['childId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeChildGroupFromParentGroup_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->childId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_removeChildGroupFromParentGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->childId !== null) {
+ $xfer += $output->writeFieldBegin('childId', TType::STRING, 2);
+ $xfer += $output->writeString($this->childId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeChildGroupFromParentGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeChildGroupFromParentGroup_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_removeChildGroupFromParentGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getAllMemberGroupsForUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getAllMemberGroupsForUser_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } 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('SharingRegistryService_getAllMemberGroupsForUser_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getAllMemberGroupsForUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ 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\Sharing\UserGroup',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getAllMemberGroupsForUser_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size70 = 0;
+ $_etype73 = 0;
+ $xfer += $input->readListBegin($_etype73, $_size70);
+ for ($_i74 = 0; $_i74 < $_size70; ++$_i74)
+ {
+ $elem75 = null;
+ $elem75 = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $elem75->read($input);
+ $this->success []= $elem75;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getAllMemberGroupsForUser_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 $iter76)
+ {
+ $xfer += $iter76->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createEntityType_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\EntityType
+ */
+ public $entityType = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entityType',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\EntityType',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entityType'])) {
+ $this->entityType = $vals['entityType'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createEntityType_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->entityType = new \Airavata\Model\Sharing\EntityType();
+ $xfer += $this->entityType->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('SharingRegistryService_createEntityType_args');
+ if ($this->entityType !== null) {
+ if (!is_object($this->entityType)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('entityType', TType::STRUCT, 1);
+ $xfer += $this->entityType->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createEntityType_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+ /**
+ * @var \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public $dee = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ 2 => array(
+ 'var' => 'dee',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\DuplicateEntryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ if (isset($vals['dee'])) {
+ $this->dee = $vals['dee'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createEntityType_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 0:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->dee = new \Airavata\Model\Sharing\DuplicateEntryException();
+ $xfer += $this->dee->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('SharingRegistryService_createEntityType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->dee !== null) {
+ $xfer += $output->writeFieldBegin('dee', TType::STRUCT, 2);
+ $xfer += $this->dee->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateEntityType_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\EntityType
+ */
+ public $entityType = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entityType',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\EntityType',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entityType'])) {
+ $this->entityType = $vals['entityType'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateEntityType_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->entityType = new \Airavata\Model\Sharing\EntityType();
+ $xfer += $this->entityType->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('SharingRegistryService_updateEntityType_args');
+ if ($this->entityType !== null) {
+ if (!is_object($this->entityType)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('entityType', TType::STRUCT, 1);
+ $xfer += $this->entityType->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateEntityType_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateEntityType_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updateEntityType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isEntityTypeExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityTypeId'])) {
+ $this->entityTypeId = $vals['entityTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isEntityTypeExists_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityTypeId);
+ } 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('SharingRegistryService_isEntityTypeExists_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityTypeId !== null) {
+ $xfer += $output->writeFieldBegin('entityTypeId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isEntityTypeExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isEntityTypeExists_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isEntityTypeExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteEntityType_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityTypeId'])) {
+ $this->entityTypeId = $vals['entityTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteEntityType_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityTypeId);
+ } 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('SharingRegistryService_deleteEntityType_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityTypeId !== null) {
+ $xfer += $output->writeFieldBegin('entityTypeId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteEntityType_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteEntityType_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deleteEntityType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntityType_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityTypeId'])) {
+ $this->entityTypeId = $vals['entityTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntityType_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityTypeId);
+ } 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('SharingRegistryService_getEntityType_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityTypeId !== null) {
+ $xfer += $output->writeFieldBegin('entityTypeId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntityType_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\EntityType
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\EntityType',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntityType_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 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\EntityType();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getEntityType_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntityTypes_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 3 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntityTypes_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getEntityTypes_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 2);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 3);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntityTypes_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\EntityType[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ 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\Sharing\EntityType',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntityTypes_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size77 = 0;
+ $_etype80 = 0;
+ $xfer += $input->readListBegin($_etype80, $_size77);
+ for ($_i81 = 0; $_i81 < $_size77; ++$_i81)
+ {
+ $elem82 = null;
+ $elem82 = new \Airavata\Model\Sharing\EntityType();
+ $xfer += $elem82->read($input);
+ $this->success []= $elem82;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getEntityTypes_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 $iter83)
+ {
+ $xfer += $iter83->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createEntity_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Entity
+ */
+ public $entity = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entity',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Entity',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entity'])) {
+ $this->entity = $vals['entity'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createEntity_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->entity = new \Airavata\Model\Sharing\Entity();
+ $xfer += $this->entity->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('SharingRegistryService_createEntity_args');
+ if ($this->entity !== null) {
+ if (!is_object($this->entity)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('entity', TType::STRUCT, 1);
+ $xfer += $this->entity->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createEntity_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createEntity_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 0:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_createEntity_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateEntity_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Entity
+ */
+ public $entity = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entity',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Entity',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entity'])) {
+ $this->entity = $vals['entity'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateEntity_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->entity = new \Airavata\Model\Sharing\Entity();
+ $xfer += $this->entity->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('SharingRegistryService_updateEntity_args');
+ if ($this->entity !== null) {
+ if (!is_object($this->entity)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('entity', TType::STRUCT, 1);
+ $xfer += $this->entity->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateEntity_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateEntity_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updateEntity_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isEntityExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isEntityExists_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } 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('SharingRegistryService_isEntityExists_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isEntityExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isEntityExists_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isEntityExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteEntity_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteEntity_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } 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('SharingRegistryService_deleteEntity_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteEntity_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteEntity_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deleteEntity_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntity_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntity_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } 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('SharingRegistryService_getEntity_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntity_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Entity
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Entity',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntity_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 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\Entity();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getEntity_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_searchEntities_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+ /**
+ * @var \Airavata\Model\Sharing\SearchCriteria[]
+ */
+ public $filters = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'filters',
+ 'type' => TType::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SearchCriteria',
+ ),
+ ),
+ 4 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 5 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ if (isset($vals['filters'])) {
+ $this->filters = $vals['filters'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_searchEntities_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->filters = array();
+ $_size84 = 0;
+ $_etype87 = 0;
+ $xfer += $input->readListBegin($_etype87, $_size84);
+ for ($_i88 = 0; $_i88 < $_size84; ++$_i88)
+ {
+ $elem89 = null;
+ $elem89 = new \Airavata\Model\Sharing\SearchCriteria();
+ $xfer += $elem89->read($input);
+ $this->filters []= $elem89;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_searchEntities_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->filters !== null) {
+ if (!is_array($this->filters)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('filters', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRUCT, count($this->filters));
+ {
+ foreach ($this->filters as $iter90)
+ {
+ $xfer += $iter90->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 4);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 5);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_searchEntities_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Entity[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ 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\Sharing\Entity',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_searchEntities_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size91 = 0;
+ $_etype94 = 0;
+ $xfer += $input->readListBegin($_etype94, $_size91);
+ for ($_i95 = 0; $_i95 < $_size91; ++$_i95)
+ {
+ $elem96 = null;
+ $elem96 = new \Airavata\Model\Sharing\Entity();
+ $xfer += $elem96->read($input);
+ $this->success []= $elem96;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_searchEntities_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 $iter97)
+ {
+ $xfer += $iter97->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getListOfSharedUsers_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getListOfSharedUsers_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_getListOfSharedUsers_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 3);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getListOfSharedUsers_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ 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\Sharing\User',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getListOfSharedUsers_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size98 = 0;
+ $_etype101 = 0;
+ $xfer += $input->readListBegin($_etype101, $_size98);
+ for ($_i102 = 0; $_i102 < $_size98; ++$_i102)
+ {
+ $elem103 = null;
+ $elem103 = new \Airavata\Model\Sharing\User();
+ $xfer += $elem103->read($input);
+ $this->success []= $elem103;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getListOfSharedUsers_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 $iter104)
+ {
+ $xfer += $iter104->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getListOfSharedGroups_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getListOfSharedGroups_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_getListOfSharedGroups_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 3);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getListOfSharedGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ 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\Sharing\UserGroup',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getListOfSharedGroups_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size105 = 0;
+ $_etype108 = 0;
+ $xfer += $input->readListBegin($_etype108, $_size105);
+ for ($_i109 = 0; $_i109 < $_size105; ++$_i109)
+ {
+ $elem110 = null;
+ $elem110 = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $elem110->read($input);
+ $this->success []= $elem110;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getListOfSharedGroups_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 $iter111)
+ {
+ $xfer += $iter111->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createPermissionType_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\PermissionType
+ */
+ public $permissionType = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'permissionType',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\PermissionType',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['permissionType'])) {
+ $this->permissionType = $vals['permissionType'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createPermissionType_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->permissionType = new \Airavata\Model\Sharing\PermissionType();
+ $xfer += $this->permissionType->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('SharingRegistryService_createPermissionType_args');
+ if ($this->permissionType !== null) {
+ if (!is_object($this->permissionType)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('permissionType', TType::STRUCT, 1);
+ $xfer += $this->permissionType->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createPermissionType_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+ /**
+ * @var \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public $dee = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ 2 => array(
+ 'var' => 'dee',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\DuplicateEntryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ if (isset($vals['dee'])) {
+ $this->dee = $vals['dee'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createPermissionType_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 0:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->dee = new \Airavata\Model\Sharing\DuplicateEntryException();
+ $xfer += $this->dee->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('SharingRegistryService_createPermissionType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->dee !== null) {
+ $xfer += $output->writeFieldBegin('dee', TType::STRUCT, 2);
+ $xfer += $this->dee->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updatePermissionType_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\PermissionType
+ */
+ public $permissionType = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'permissionType',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\PermissionType',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['permissionType'])) {
+ $this->permissionType = $vals['permissionType'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updatePermissionType_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->permissionType = new \Airavata\Model\Sharing\PermissionType();
+ $xfer += $this->permissionType->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('SharingRegistryService_updatePermissionType_args');
+ if ($this->permissionType !== null) {
+ if (!is_object($this->permissionType)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('permissionType', TType::STRUCT, 1);
+ $xfer += $this->permissionType->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updatePermissionType_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updatePermissionType_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updatePermissionType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isPermissionExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $dimainId = null;
+ /**
+ * @var string
+ */
+ public $permissionId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'dimainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'permissionId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['dimainId'])) {
+ $this->dimainId = $vals['dimainId'];
+ }
+ if (isset($vals['permissionId'])) {
+ $this->permissionId = $vals['permissionId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isPermissionExists_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::STRING) {
+ $xfer += $input->readString($this->dimainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionId);
+ } 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('SharingRegistryService_isPermissionExists_args');
+ if ($this->dimainId !== null) {
+ $xfer += $output->writeFieldBegin('dimainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->dimainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionId !== null) {
+ $xfer += $output->writeFieldBegin('permissionId', TType::STRING, 2);
+ $xfer += $output->writeString($this->permissionId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isPermissionExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isPermissionExists_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isPermissionExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deletePermissionType_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deletePermissionType_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_deletePermissionType_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 2);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deletePermissionType_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deletePermissionType_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deletePermissionType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getPermissionType_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getPermissionType_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_getPermissionType_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 2);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getPermissionType_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\PermissionType
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\PermissionType',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getPermissionType_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 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\PermissionType();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getPermissionType_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getPermissionTypes_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 3 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getPermissionTypes_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getPermissionTypes_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 2);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 3);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getPermissionTypes_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\PermissionType[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ 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\Sharing\PermissionType',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getPermissionTypes_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size112 = 0;
+ $_etype115 = 0;
+ $xfer += $input->readListBegin($_etype115, $_size112);
+ for ($_i116 = 0; $_i116 < $_size112; ++$_i116)
+ {
+ $elem117 = null;
+ $elem117 = new \Airavata\Model\Sharing\PermissionType();
+ $xfer += $elem117->read($input);
+ $this->success []= $elem117;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getPermissionTypes_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 $iter118)
+ {
+ $xfer += $iter118->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_shareEntityWithUsers_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string[]
+ */
+ public $userList = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+ /**
+ * @var bool
+ */
+ public $cascadePermission = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'userList',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 4 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'cascadePermission',
+ 'type' => TType::BOOL,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['userList'])) {
+ $this->userList = $vals['userList'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ if (isset($vals['cascadePermission'])) {
+ $this->cascadePermission = $vals['cascadePermission'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_shareEntityWithUsers_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->userList = array();
+ $_size119 = 0;
+ $_etype122 = 0;
+ $xfer += $input->readListBegin($_etype122, $_size119);
+ for ($_i123 = 0; $_i123 < $_size119; ++$_i123)
+ {
+ $elem124 = null;
+ $xfer += $input->readString($elem124);
+ $this->userList []= $elem124;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->cascadePermission);
+ } 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('SharingRegistryService_shareEntityWithUsers_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userList !== null) {
+ if (!is_array($this->userList)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('userList', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->userList));
+ {
+ foreach ($this->userList as $iter125)
+ {
+ $xfer += $output->writeString($iter125);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 4);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->cascadePermission !== null) {
+ $xfer += $output->writeFieldBegin('cascadePermission', TType::BOOL, 5);
+ $xfer += $output->writeBool($this->cascadePermission);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_shareEntityWithUsers_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_shareEntityWithUsers_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_shareEntityWithUsers_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_revokeEntitySharingFromUsers_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string[]
+ */
+ public $userList = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'userList',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 4 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['userList'])) {
+ $this->userList = $vals['userList'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_revokeEntitySharingFromUsers_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->userList = array();
+ $_size126 = 0;
+ $_etype129 = 0;
+ $xfer += $input->readListBegin($_etype129, $_size126);
+ for ($_i130 = 0; $_i130 < $_size126; ++$_i130)
+ {
+ $elem131 = null;
+ $xfer += $input->readString($elem131);
+ $this->userList []= $elem131;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_revokeEntitySharingFromUsers_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userList !== null) {
+ if (!is_array($this->userList)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('userList', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->userList));
+ {
+ foreach ($this->userList as $iter132)
+ {
+ $xfer += $output->writeString($iter132);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 4);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_revokeEntitySharingFromUsers_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_revokeEntitySharingFromUsers_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_revokeEntitySharingFromUsers_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_shareEntityWithGroups_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string[]
+ */
+ public $groupList = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+ /**
+ * @var bool
+ */
+ public $cascadePermission = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupList',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 4 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'cascadePermission',
+ 'type' => TType::BOOL,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['groupList'])) {
+ $this->groupList = $vals['groupList'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ if (isset($vals['cascadePermission'])) {
+ $this->cascadePermission = $vals['cascadePermission'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_shareEntityWithGroups_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->groupList = array();
+ $_size133 = 0;
+ $_etype136 = 0;
+ $xfer += $input->readListBegin($_etype136, $_size133);
+ for ($_i137 = 0; $_i137 < $_size133; ++$_i137)
+ {
+ $elem138 = null;
+ $xfer += $input->readString($elem138);
+ $this->groupList []= $elem138;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->cascadePermission);
+ } 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('SharingRegistryService_shareEntityWithGroups_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupList !== null) {
+ if (!is_array($this->groupList)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('groupList', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->groupList));
+ {
+ foreach ($this->groupList as $iter139)
+ {
+ $xfer += $output->writeString($iter139);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 4);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->cascadePermission !== null) {
+ $xfer += $output->writeFieldBegin('cascadePermission', TType::BOOL, 5);
+ $xfer += $output->writeBool($this->cascadePermission);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_shareEntityWithGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_shareEntityWithGroups_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_shareEntityWithGroups_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_revokeEntitySharingFromGroups_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string[]
+ */
+ public $groupList = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupList',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 4 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['groupList'])) {
+ $this->groupList = $vals['groupList'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_revokeEntitySharingFromGroups_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->groupList = array();
+ $_size140 = 0;
+ $_etype143 = 0;
+ $xfer += $input->readListBegin($_etype143, $_size140);
+ for ($_i144 = 0; $_i144 < $_size140; ++$_i144)
+ {
+ $elem145 = null;
+ $xfer += $input->readString($elem145);
+ $this->groupList []= $elem145;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_revokeEntitySharingFromGroups_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupList !== null) {
+ if (!is_array($this->groupList)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('groupList', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->groupList));
+ {
+ foreach ($this->groupList as $iter146)
+ {
+ $xfer += $output->writeString($iter146);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 4);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_revokeEntitySharingFromGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_revokeEntitySharingFromGroups_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_revokeEntitySharingFromGroups_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_userHasAccess_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_userHasAccess_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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_userHasAccess_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 3);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 4);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_userHasAccess_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_userHasAccess_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_userHasAccess_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+
diff --git a/app/libraries/Airavata/API/Sharing/Types.php b/app/libraries/Airavata/API/Sharing/Types.php
new file mode 100644
index 0000000..050b73e
--- /dev/null
+++ b/app/libraries/Airavata/API/Sharing/Types.php
@@ -0,0 +1,20 @@
+<?php
+namespace Airavata\API\Sharing;
+
+/**
+ * Autogenerated by Thrift Compiler (0.10.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+use Thrift\Base\TBase;
+use Thrift\Type\TType;
+use Thrift\Type\TMessageType;
+use Thrift\Exception\TException;
+use Thrift\Exception\TProtocolException;
+use Thrift\Protocol\TProtocol;
+use Thrift\Protocol\TBinaryProtocolAccelerated;
+use Thrift\Exception\TApplicationException;
+
+
+
diff --git a/app/libraries/Airavata/API/Types.php b/app/libraries/Airavata/API/Types.php
index 84e30af..f1235c6 100644
--- a/app/libraries/Airavata/API/Types.php
+++ b/app/libraries/Airavata/API/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\API;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/AppCatalog/AccountProvisioning/Types.php b/app/libraries/Airavata/Model/AppCatalog/AccountProvisioning/Types.php
index 541abd8..3dc1c52 100644
--- a/app/libraries/Airavata/Model/AppCatalog/AccountProvisioning/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/AccountProvisioning/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\AccountProvisioning;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/AppCatalog/AppDeployment/Types.php b/app/libraries/Airavata/Model/AppCatalog/AppDeployment/Types.php
index abcb322..32ab54a 100644
--- a/app/libraries/Airavata/Model/AppCatalog/AppDeployment/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/AppDeployment/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\AppDeployment;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/AppCatalog/AppInterface/Types.php b/app/libraries/Airavata/Model/AppCatalog/AppInterface/Types.php
index 2477b43..644539f 100644
--- a/app/libraries/Airavata/Model/AppCatalog/AppInterface/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/AppInterface/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\AppInterface;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php b/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php
index 47e6e24..d42d05f 100644
--- a/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\ComputeResource;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/AppCatalog/GatewayGroups/Types.php b/app/libraries/Airavata/Model/AppCatalog/GatewayGroups/Types.php
new file mode 100644
index 0000000..d15859b
--- /dev/null
+++ b/app/libraries/Airavata/Model/AppCatalog/GatewayGroups/Types.php
@@ -0,0 +1,164 @@
+<?php
+namespace Airavata\Model\AppCatalog\GatewayGroups;
+
+/**
+ * Autogenerated by Thrift Compiler (0.10.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+use Thrift\Base\TBase;
+use Thrift\Type\TType;
+use Thrift\Type\TMessageType;
+use Thrift\Exception\TException;
+use Thrift\Exception\TProtocolException;
+use Thrift\Protocol\TProtocol;
+use Thrift\Protocol\TBinaryProtocolAccelerated;
+use Thrift\Exception\TApplicationException;
+
+
+class GatewayGroups {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $gatewayId = null;
+ /**
+ * @var string
+ */
+ public $adminsGroupId = null;
+ /**
+ * @var string
+ */
+ public $readOnlyAdminsGroupId = null;
+ /**
+ * @var string
+ */
+ public $defaultGatewayUsersGroupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'gatewayId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'adminsGroupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'readOnlyAdminsGroupId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'defaultGatewayUsersGroupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['gatewayId'])) {
+ $this->gatewayId = $vals['gatewayId'];
+ }
+ if (isset($vals['adminsGroupId'])) {
+ $this->adminsGroupId = $vals['adminsGroupId'];
+ }
+ if (isset($vals['readOnlyAdminsGroupId'])) {
+ $this->readOnlyAdminsGroupId = $vals['readOnlyAdminsGroupId'];
+ }
+ if (isset($vals['defaultGatewayUsersGroupId'])) {
+ $this->defaultGatewayUsersGroupId = $vals['defaultGatewayUsersGroupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GatewayGroups';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->gatewayId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->adminsGroupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->readOnlyAdminsGroupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->defaultGatewayUsersGroupId);
+ } 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('GatewayGroups');
+ if ($this->gatewayId !== null) {
+ $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1);
+ $xfer += $output->writeString($this->gatewayId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminsGroupId !== null) {
+ $xfer += $output->writeFieldBegin('adminsGroupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->adminsGroupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->readOnlyAdminsGroupId !== null) {
+ $xfer += $output->writeFieldBegin('readOnlyAdminsGroupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->readOnlyAdminsGroupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->defaultGatewayUsersGroupId !== null) {
+ $xfer += $output->writeFieldBegin('defaultGatewayUsersGroupId', TType::STRING, 4);
+ $xfer += $output->writeString($this->defaultGatewayUsersGroupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+
diff --git a/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php b/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php
index 63e39bc..8340e08 100644
--- a/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\GatewayProfile;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/AppCatalog/GroupResourceProfile/Types.php b/app/libraries/Airavata/Model/AppCatalog/GroupResourceProfile/Types.php
new file mode 100644
index 0000000..072d787
--- /dev/null
+++ b/app/libraries/Airavata/Model/AppCatalog/GroupResourceProfile/Types.php
@@ -0,0 +1,1380 @@
+<?php
+namespace Airavata\Model\AppCatalog\GroupResourceProfile;
+
+/**
+ * Autogenerated by Thrift Compiler (0.10.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+use Thrift\Base\TBase;
+use Thrift\Type\TType;
+use Thrift\Type\TMessageType;
+use Thrift\Exception\TException;
+use Thrift\Exception\TProtocolException;
+use Thrift\Protocol\TProtocol;
+use Thrift\Protocol\TBinaryProtocolAccelerated;
+use Thrift\Exception\TApplicationException;
+
+
+class GroupAccountSSHProvisionerConfig {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $resourceId = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = "DO_NOT_SET_AT_CLIENTS";
+ /**
+ * @var string
+ */
+ public $configName = null;
+ /**
+ * @var string
+ */
+ public $configValue = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'resourceId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'configName',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'configValue',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['resourceId'])) {
+ $this->resourceId = $vals['resourceId'];
+ }
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
+ if (isset($vals['configName'])) {
+ $this->configName = $vals['configName'];
+ }
+ if (isset($vals['configValue'])) {
+ $this->configValue = $vals['configValue'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupAccountSSHProvisionerConfig';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->resourceId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupResourceProfileId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->configName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->configValue);
+ } 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('GroupAccountSSHProvisionerConfig');
+ if ($this->resourceId !== null) {
+ $xfer += $output->writeFieldBegin('resourceId', TType::STRING, 1);
+ $xfer += $output->writeString($this->resourceId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->configName !== null) {
+ $xfer += $output->writeFieldBegin('configName', TType::STRING, 3);
+ $xfer += $output->writeString($this->configName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->configValue !== null) {
+ $xfer += $output->writeFieldBegin('configValue', TType::STRING, 4);
+ $xfer += $output->writeString($this->configValue);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupComputeResourcePreference {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $computeResourceId = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = "DO_NOT_SET_AT_CLIENTS";
+ /**
+ * @var bool
+ */
+ public $overridebyAiravata = true;
+ /**
+ * @var string
+ */
+ public $loginUserName = null;
+ /**
+ * @var int
+ */
+ public $preferredJobSubmissionProtocol = null;
+ /**
+ * @var int
+ */
+ public $preferredDataMovementProtocol = null;
+ /**
+ * @var string
+ */
+ public $preferredBatchQueue = null;
+ /**
+ * @var string
+ */
+ public $scratchLocation = null;
+ /**
+ * @var string
+ */
+ public $allocationProjectNumber = null;
+ /**
+ * @var string
+ */
+ public $resourceSpecificCredentialStoreToken = null;
+ /**
+ * @var string
+ */
+ public $usageReportingGatewayId = null;
+ /**
+ * @var string
+ */
+ public $qualityOfService = null;
+ /**
+ * @var string
+ */
+ public $reservation = null;
+ /**
+ * @var int
+ */
+ public $reservationStartTime = null;
+ /**
+ * @var int
+ */
+ public $reservationEndTime = null;
+ /**
+ * @var string
+ */
+ public $sshAccountProvisioner = null;
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\GroupAccountSSHProvisionerConfig[]
+ */
+ public $groupSSHAccountProvisionerConfigs = null;
+ /**
+ * @var string
+ */
+ public $sshAccountProvisionerAdditionalInfo = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'computeResourceId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'overridebyAiravata',
+ 'type' => TType::BOOL,
+ ),
+ 4 => array(
+ 'var' => 'loginUserName',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'preferredJobSubmissionProtocol',
+ 'type' => TType::I32,
+ ),
+ 6 => array(
+ 'var' => 'preferredDataMovementProtocol',
+ 'type' => TType::I32,
+ ),
+ 7 => array(
+ 'var' => 'preferredBatchQueue',
+ 'type' => TType::STRING,
+ ),
+ 8 => array(
+ 'var' => 'scratchLocation',
+ 'type' => TType::STRING,
+ ),
+ 9 => array(
+ 'var' => 'allocationProjectNumber',
+ 'type' => TType::STRING,
+ ),
+ 10 => array(
+ 'var' => 'resourceSpecificCredentialStoreToken',
+ 'type' => TType::STRING,
+ ),
+ 11 => array(
+ 'var' => 'usageReportingGatewayId',
+ 'type' => TType::STRING,
+ ),
+ 12 => array(
+ 'var' => 'qualityOfService',
+ 'type' => TType::STRING,
+ ),
+ 13 => array(
+ 'var' => 'reservation',
+ 'type' => TType::STRING,
+ ),
+ 14 => array(
+ 'var' => 'reservationStartTime',
+ 'type' => TType::I64,
+ ),
+ 15 => array(
+ 'var' => 'reservationEndTime',
+ 'type' => TType::I64,
+ ),
+ 16 => array(
+ 'var' => 'sshAccountProvisioner',
+ 'type' => TType::STRING,
+ ),
+ 17 => array(
+ 'var' => 'groupSSHAccountProvisionerConfigs',
+ 'type' => TType::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\GroupAccountSSHProvisionerConfig',
+ ),
+ ),
+ 18 => array(
+ 'var' => 'sshAccountProvisionerAdditionalInfo',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['computeResourceId'])) {
+ $this->computeResourceId = $vals['computeResourceId'];
+ }
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
+ if (isset($vals['overridebyAiravata'])) {
+ $this->overridebyAiravata = $vals['overridebyAiravata'];
+ }
+ if (isset($vals['loginUserName'])) {
+ $this->loginUserName = $vals['loginUserName'];
+ }
+ if (isset($vals['preferredJobSubmissionProtocol'])) {
+ $this->preferredJobSubmissionProtocol = $vals['preferredJobSubmissionProtocol'];
+ }
+ if (isset($vals['preferredDataMovementProtocol'])) {
+ $this->preferredDataMovementProtocol = $vals['preferredDataMovementProtocol'];
+ }
+ if (isset($vals['preferredBatchQueue'])) {
+ $this->preferredBatchQueue = $vals['preferredBatchQueue'];
+ }
+ if (isset($vals['scratchLocation'])) {
+ $this->scratchLocation = $vals['scratchLocation'];
+ }
+ if (isset($vals['allocationProjectNumber'])) {
+ $this->allocationProjectNumber = $vals['allocationProjectNumber'];
+ }
+ if (isset($vals['resourceSpecificCredentialStoreToken'])) {
+ $this->resourceSpecificCredentialStoreToken = $vals['resourceSpecificCredentialStoreToken'];
+ }
+ if (isset($vals['usageReportingGatewayId'])) {
+ $this->usageReportingGatewayId = $vals['usageReportingGatewayId'];
+ }
+ if (isset($vals['qualityOfService'])) {
+ $this->qualityOfService = $vals['qualityOfService'];
+ }
+ if (isset($vals['reservation'])) {
+ $this->reservation = $vals['reservation'];
+ }
+ if (isset($vals['reservationStartTime'])) {
+ $this->reservationStartTime = $vals['reservationStartTime'];
+ }
+ if (isset($vals['reservationEndTime'])) {
+ $this->reservationEndTime = $vals['reservationEndTime'];
+ }
+ if (isset($vals['sshAccountProvisioner'])) {
+ $this->sshAccountProvisioner = $vals['sshAccountProvisioner'];
+ }
+ if (isset($vals['groupSSHAccountProvisionerConfigs'])) {
+ $this->groupSSHAccountProvisionerConfigs = $vals['groupSSHAccountProvisionerConfigs'];
+ }
+ if (isset($vals['sshAccountProvisionerAdditionalInfo'])) {
+ $this->sshAccountProvisionerAdditionalInfo = $vals['sshAccountProvisionerAdditionalInfo'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupComputeResourcePreference';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->computeResourceId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupResourceProfileId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->overridebyAiravata);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->loginUserName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->preferredJobSubmissionProtocol);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->preferredDataMovementProtocol);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->preferredBatchQueue);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->scratchLocation);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 9:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->allocationProjectNumber);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 10:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->resourceSpecificCredentialStoreToken);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 11:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->usageReportingGatewayId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 12:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->qualityOfService);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 13:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->reservation);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 14:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->reservationStartTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 15:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->reservationEndTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 16:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->sshAccountProvisioner);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 17:
+ if ($ftype == TType::LST) {
+ $this->groupSSHAccountProvisionerConfigs = array();
+ $_size0 = 0;
+ $_etype3 = 0;
+ $xfer += $input->readListBegin($_etype3, $_size0);
+ for ($_i4 = 0; $_i4 < $_size0; ++$_i4)
+ {
+ $elem5 = null;
+ $elem5 = new \Airavata\Model\AppCatalog\GroupResourceProfile\GroupAccountSSHProvisionerConfig();
+ $xfer += $elem5->read($input);
+ $this->groupSSHAccountProvisionerConfigs []= $elem5;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 18:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->sshAccountProvisionerAdditionalInfo);
+ } 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('GroupComputeResourcePreference');
+ if ($this->computeResourceId !== null) {
+ $xfer += $output->writeFieldBegin('computeResourceId', TType::STRING, 1);
+ $xfer += $output->writeString($this->computeResourceId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->overridebyAiravata !== null) {
+ $xfer += $output->writeFieldBegin('overridebyAiravata', TType::BOOL, 3);
+ $xfer += $output->writeBool($this->overridebyAiravata);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->loginUserName !== null) {
+ $xfer += $output->writeFieldBegin('loginUserName', TType::STRING, 4);
+ $xfer += $output->writeString($this->loginUserName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->preferredJobSubmissionProtocol !== null) {
+ $xfer += $output->writeFieldBegin('preferredJobSubmissionProtocol', TType::I32, 5);
+ $xfer += $output->writeI32($this->preferredJobSubmissionProtocol);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->preferredDataMovementProtocol !== null) {
+ $xfer += $output->writeFieldBegin('preferredDataMovementProtocol', TType::I32, 6);
+ $xfer += $output->writeI32($this->preferredDataMovementProtocol);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->preferredBatchQueue !== null) {
+ $xfer += $output->writeFieldBegin('preferredBatchQueue', TType::STRING, 7);
+ $xfer += $output->writeString($this->preferredBatchQueue);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->scratchLocation !== null) {
+ $xfer += $output->writeFieldBegin('scratchLocation', TType::STRING, 8);
+ $xfer += $output->writeString($this->scratchLocation);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->allocationProjectNumber !== null) {
+ $xfer += $output->writeFieldBegin('allocationProjectNumber', TType::STRING, 9);
+ $xfer += $output->writeString($this->allocationProjectNumber);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->resourceSpecificCredentialStoreToken !== null) {
+ $xfer += $output->writeFieldBegin('resourceSpecificCredentialStoreToken', TType::STRING, 10);
+ $xfer += $output->writeString($this->resourceSpecificCredentialStoreToken);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->usageReportingGatewayId !== null) {
+ $xfer += $output->writeFieldBegin('usageReportingGatewayId', TType::STRING, 11);
+ $xfer += $output->writeString($this->usageReportingGatewayId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->qualityOfService !== null) {
+ $xfer += $output->writeFieldBegin('qualityOfService', TType::STRING, 12);
+ $xfer += $output->writeString($this->qualityOfService);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->reservation !== null) {
+ $xfer += $output->writeFieldBegin('reservation', TType::STRING, 13);
+ $xfer += $output->writeString($this->reservation);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->reservationStartTime !== null) {
+ $xfer += $output->writeFieldBegin('reservationStartTime', TType::I64, 14);
+ $xfer += $output->writeI64($this->reservationStartTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->reservationEndTime !== null) {
+ $xfer += $output->writeFieldBegin('reservationEndTime', TType::I64, 15);
+ $xfer += $output->writeI64($this->reservationEndTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sshAccountProvisioner !== null) {
+ $xfer += $output->writeFieldBegin('sshAccountProvisioner', TType::STRING, 16);
+ $xfer += $output->writeString($this->sshAccountProvisioner);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupSSHAccountProvisionerConfigs !== null) {
+ if (!is_array($this->groupSSHAccountProvisionerConfigs)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('groupSSHAccountProvisionerConfigs', TType::LST, 17);
+ {
+ $output->writeListBegin(TType::STRUCT, count($this->groupSSHAccountProvisionerConfigs));
+ {
+ foreach ($this->groupSSHAccountProvisionerConfigs as $iter6)
+ {
+ $xfer += $iter6->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sshAccountProvisionerAdditionalInfo !== null) {
+ $xfer += $output->writeFieldBegin('sshAccountProvisionerAdditionalInfo', TType::STRING, 18);
+ $xfer += $output->writeString($this->sshAccountProvisionerAdditionalInfo);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ComputeResourcePolicy {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $resourcePolicyId = "DO_NOT_SET_AT_CLIENTS";
+ /**
+ * @var string
+ */
+ public $computeResourceId = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = "DO_NOT_SET_AT_CLIENTS";
+ /**
+ * @var string[]
+ */
+ public $allowedBatchQueues = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'resourcePolicyId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'computeResourceId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'allowedBatchQueues',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['resourcePolicyId'])) {
+ $this->resourcePolicyId = $vals['resourcePolicyId'];
+ }
+ if (isset($vals['computeResourceId'])) {
+ $this->computeResourceId = $vals['computeResourceId'];
+ }
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
+ if (isset($vals['allowedBatchQueues'])) {
+ $this->allowedBatchQueues = $vals['allowedBatchQueues'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ComputeResourcePolicy';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->resourcePolicyId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->computeResourceId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupResourceProfileId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::LST) {
+ $this->allowedBatchQueues = array();
+ $_size7 = 0;
+ $_etype10 = 0;
+ $xfer += $input->readListBegin($_etype10, $_size7);
+ for ($_i11 = 0; $_i11 < $_size7; ++$_i11)
+ {
+ $elem12 = null;
+ $xfer += $input->readString($elem12);
+ $this->allowedBatchQueues []= $elem12;
+ }
+ $xfer += $input->readListEnd();
+ } 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('ComputeResourcePolicy');
+ if ($this->resourcePolicyId !== null) {
+ $xfer += $output->writeFieldBegin('resourcePolicyId', TType::STRING, 1);
+ $xfer += $output->writeString($this->resourcePolicyId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->computeResourceId !== null) {
+ $xfer += $output->writeFieldBegin('computeResourceId', TType::STRING, 2);
+ $xfer += $output->writeString($this->computeResourceId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->allowedBatchQueues !== null) {
+ if (!is_array($this->allowedBatchQueues)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('allowedBatchQueues', TType::LST, 4);
+ {
+ $output->writeListBegin(TType::STRING, count($this->allowedBatchQueues));
+ {
+ foreach ($this->allowedBatchQueues as $iter13)
+ {
+ $xfer += $output->writeString($iter13);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class BatchQueueResourcePolicy {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $resourcePolicyId = "DO_NOT_SET_AT_CLIENTS";
+ /**
+ * @var string
+ */
+ public $computeResourceId = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = "DO_NOT_SET_AT_CLIENTS";
+ /**
+ * @var string
+ */
+ public $queuename = null;
+ /**
+ * @var int
+ */
+ public $maxAllowedNodes = null;
+ /**
+ * @var int
+ */
+ public $maxAllowedCores = null;
+ /**
+ * @var int
+ */
+ public $maxAllowedWalltime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'resourcePolicyId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'computeResourceId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'queuename',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'maxAllowedNodes',
+ 'type' => TType::I32,
+ ),
+ 6 => array(
+ 'var' => 'maxAllowedCores',
+ 'type' => TType::I32,
+ ),
+ 7 => array(
+ 'var' => 'maxAllowedWalltime',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['resourcePolicyId'])) {
+ $this->resourcePolicyId = $vals['resourcePolicyId'];
+ }
+ if (isset($vals['computeResourceId'])) {
+ $this->computeResourceId = $vals['computeResourceId'];
+ }
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
+ if (isset($vals['queuename'])) {
+ $this->queuename = $vals['queuename'];
+ }
+ if (isset($vals['maxAllowedNodes'])) {
+ $this->maxAllowedNodes = $vals['maxAllowedNodes'];
+ }
+ if (isset($vals['maxAllowedCores'])) {
+ $this->maxAllowedCores = $vals['maxAllowedCores'];
+ }
+ if (isset($vals['maxAllowedWalltime'])) {
+ $this->maxAllowedWalltime = $vals['maxAllowedWalltime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'BatchQueueResourcePolicy';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->resourcePolicyId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->computeResourceId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupResourceProfileId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->queuename);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->maxAllowedNodes);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->maxAllowedCores);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->maxAllowedWalltime);
+ } 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('BatchQueueResourcePolicy');
+ if ($this->resourcePolicyId !== null) {
+ $xfer += $output->writeFieldBegin('resourcePolicyId', TType::STRING, 1);
+ $xfer += $output->writeString($this->resourcePolicyId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->computeResourceId !== null) {
+ $xfer += $output->writeFieldBegin('computeResourceId', TType::STRING, 2);
+ $xfer += $output->writeString($this->computeResourceId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->queuename !== null) {
+ $xfer += $output->writeFieldBegin('queuename', TType::STRING, 4);
+ $xfer += $output->writeString($this->queuename);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->maxAllowedNodes !== null) {
+ $xfer += $output->writeFieldBegin('maxAllowedNodes', TType::I32, 5);
+ $xfer += $output->writeI32($this->maxAllowedNodes);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->maxAllowedCores !== null) {
+ $xfer += $output->writeFieldBegin('maxAllowedCores', TType::I32, 6);
+ $xfer += $output->writeI32($this->maxAllowedCores);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->maxAllowedWalltime !== null) {
+ $xfer += $output->writeFieldBegin('maxAllowedWalltime', TType::I32, 7);
+ $xfer += $output->writeI32($this->maxAllowedWalltime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * Group Resource Profile
+ *
+ * gatewayID:
+ * Unique identifier for the gateway assigned by Airavata. Corelate this to Airavata Admin API Gateway Registration.
+ *
+ * groupResourceProfileId:
+ *
+ * computeResourcePreferences:
+ * List of resource preferences for each of the registered compute resources.
+ *
+ * computeResourcePolicies:
+ * List of enforced policies for each of the registered compute resources.
+ *
+ * batchQueueResourcePolicies:
+ * List of enforced policies on registered batch queues
+ *
+ *
+ */
+class GroupResourceProfile {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $gatewayId = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = "DO_NOT_SET_AT_CLIENTS";
+ /**
+ * @var string
+ */
+ public $groupResourceProfileName = null;
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\GroupComputeResourcePreference[]
+ */
+ public $computePreferences = null;
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\ComputeResourcePolicy[]
+ */
+ public $computeResourcePolicies = null;
+ /**
+ * @var \Airavata\Model\AppCatalog\GroupResourceProfile\BatchQueueResourcePolicy[]
+ */
+ public $batchQueueResourcePolicies = null;
+ /**
+ * @var int
+ */
+ public $creationTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'gatewayId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupResourceProfileName',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'computePreferences',
+ 'type' => TType::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\GroupComputeResourcePreference',
+ ),
+ ),
+ 5 => array(
+ 'var' => 'computeResourcePolicies',
+ 'type' => TType::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\ComputeResourcePolicy',
+ ),
+ ),
+ 6 => array(
+ 'var' => 'batchQueueResourcePolicies',
+ 'type' => TType::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\AppCatalog\GroupResourceProfile\BatchQueueResourcePolicy',
+ ),
+ ),
+ 7 => array(
+ 'var' => 'creationTime',
+ 'type' => TType::I64,
+ ),
+ 8 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['gatewayId'])) {
+ $this->gatewayId = $vals['gatewayId'];
+ }
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
+ if (isset($vals['groupResourceProfileName'])) {
+ $this->groupResourceProfileName = $vals['groupResourceProfileName'];
+ }
+ if (isset($vals['computePreferences'])) {
+ $this->computePreferences = $vals['computePreferences'];
+ }
+ if (isset($vals['computeResourcePolicies'])) {
+ $this->computeResourcePolicies = $vals['computeResourcePolicies'];
+ }
+ if (isset($vals['batchQueueResourcePolicies'])) {
+ $this->batchQueueResourcePolicies = $vals['batchQueueResourcePolicies'];
+ }
+ if (isset($vals['creationTime'])) {
+ $this->creationTime = $vals['creationTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupResourceProfile';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->gatewayId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupResourceProfileId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupResourceProfileName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::LST) {
+ $this->computePreferences = array();
+ $_size14 = 0;
+ $_etype17 = 0;
+ $xfer += $input->readListBegin($_etype17, $_size14);
+ for ($_i18 = 0; $_i18 < $_size14; ++$_i18)
+ {
+ $elem19 = null;
+ $elem19 = new \Airavata\Model\AppCatalog\GroupResourceProfile\GroupComputeResourcePreference();
+ $xfer += $elem19->read($input);
+ $this->computePreferences []= $elem19;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::LST) {
+ $this->computeResourcePolicies = array();
+ $_size20 = 0;
+ $_etype23 = 0;
+ $xfer += $input->readListBegin($_etype23, $_size20);
+ for ($_i24 = 0; $_i24 < $_size20; ++$_i24)
+ {
+ $elem25 = null;
+ $elem25 = new \Airavata\Model\AppCatalog\GroupResourceProfile\ComputeResourcePolicy();
+ $xfer += $elem25->read($input);
+ $this->computeResourcePolicies []= $elem25;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::LST) {
+ $this->batchQueueResourcePolicies = array();
+ $_size26 = 0;
+ $_etype29 = 0;
+ $xfer += $input->readListBegin($_etype29, $_size26);
+ for ($_i30 = 0; $_i30 < $_size26; ++$_i30)
+ {
+ $elem31 = null;
+ $elem31 = new \Airavata\Model\AppCatalog\GroupResourceProfile\BatchQueueResourcePolicy();
+ $xfer += $elem31->read($input);
+ $this->batchQueueResourcePolicies []= $elem31;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->creationTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('GroupResourceProfile');
+ if ($this->gatewayId !== null) {
+ $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1);
+ $xfer += $output->writeString($this->gatewayId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupResourceProfileName !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileName', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupResourceProfileName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->computePreferences !== null) {
+ if (!is_array($this->computePreferences)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('computePreferences', TType::LST, 4);
+ {
+ $output->writeListBegin(TType::STRUCT, count($this->computePreferences));
+ {
+ foreach ($this->computePreferences as $iter32)
+ {
+ $xfer += $iter32->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->computeResourcePolicies !== null) {
+ if (!is_array($this->computeResourcePolicies)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('computeResourcePolicies', TType::LST, 5);
+ {
+ $output->writeListBegin(TType::STRUCT, count($this->computeResourcePolicies));
+ {
+ foreach ($this->computeResourcePolicies as $iter33)
+ {
+ $xfer += $iter33->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->batchQueueResourcePolicies !== null) {
+ if (!is_array($this->batchQueueResourcePolicies)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('batchQueueResourcePolicies', TType::LST, 6);
+ {
+ $output->writeListBegin(TType::STRUCT, count($this->batchQueueResourcePolicies));
+ {
+ foreach ($this->batchQueueResourcePolicies as $iter34)
+ {
+ $xfer += $iter34->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->creationTime !== null) {
+ $xfer += $output->writeFieldBegin('creationTime', TType::I64, 7);
+ $xfer += $output->writeI64($this->creationTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 8);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+
diff --git a/app/libraries/Airavata/Model/AppCatalog/Parallelism/Types.php b/app/libraries/Airavata/Model/AppCatalog/Parallelism/Types.php
index e633a53..1b55232 100644
--- a/app/libraries/Airavata/Model/AppCatalog/Parallelism/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/Parallelism/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\Parallelism;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/AppCatalog/StorageResource/Types.php b/app/libraries/Airavata/Model/AppCatalog/StorageResource/Types.php
index 93df378..1ab0527 100644
--- a/app/libraries/Airavata/Model/AppCatalog/StorageResource/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/StorageResource/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\StorageResource;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -57,6 +57,14 @@
* @var \Airavata\Model\Data\Movement\DataMovementInterface[]
*/
public $dataMovementInterfaces = null;
+ /**
+ * @var int
+ */
+ public $creationTime = null;
+ /**
+ * @var int
+ */
+ public $updateTime = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -86,6 +94,14 @@
'class' => '\Airavata\Model\Data\Movement\DataMovementInterface',
),
),
+ 6 => array(
+ 'var' => 'creationTime',
+ 'type' => TType::I64,
+ ),
+ 7 => array(
+ 'var' => 'updateTime',
+ 'type' => TType::I64,
+ ),
);
}
if (is_array($vals)) {
@@ -104,6 +120,12 @@
if (isset($vals['dataMovementInterfaces'])) {
$this->dataMovementInterfaces = $vals['dataMovementInterfaces'];
}
+ if (isset($vals['creationTime'])) {
+ $this->creationTime = $vals['creationTime'];
+ }
+ if (isset($vals['updateTime'])) {
+ $this->updateTime = $vals['updateTime'];
+ }
}
}
@@ -172,6 +194,20 @@
$xfer += $input->skip($ftype);
}
break;
+ case 6:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->creationTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updateTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -222,6 +258,16 @@
}
$xfer += $output->writeFieldEnd();
}
+ if ($this->creationTime !== null) {
+ $xfer += $output->writeFieldBegin('creationTime', TType::I64, 6);
+ $xfer += $output->writeI64($this->creationTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updateTime !== null) {
+ $xfer += $output->writeFieldBegin('updateTime', TType::I64, 7);
+ $xfer += $output->writeI64($this->updateTime);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
diff --git a/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php b/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php
index c4a0a9c..83f5657 100644
--- a/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\UserResourceProfile;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -517,9 +517,6 @@
*
* identityServerPwdCredToken:
*
- * isNull:
- * Indicates that this instance is just a container for a null value.
- *
*/
class UserResourceProfile {
static $_TSPEC;
@@ -552,10 +549,6 @@
* @var string
*/
public $identityServerPwdCredToken = null;
- /**
- * @var bool
- */
- public $isNull = false;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -598,10 +591,6 @@
'var' => 'identityServerPwdCredToken',
'type' => TType::STRING,
),
- 8 => array(
- 'var' => 'isNull',
- 'type' => TType::BOOL,
- ),
);
}
if (is_array($vals)) {
@@ -626,9 +615,6 @@
if (isset($vals['identityServerPwdCredToken'])) {
$this->identityServerPwdCredToken = $vals['identityServerPwdCredToken'];
}
- if (isset($vals['isNull'])) {
- $this->isNull = $vals['isNull'];
- }
}
}
@@ -722,13 +708,6 @@
$xfer += $input->skip($ftype);
}
break;
- case 8:
- if ($ftype == TType::BOOL) {
- $xfer += $input->readBool($this->isNull);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
default:
$xfer += $input->skip($ftype);
break;
@@ -801,11 +780,6 @@
$xfer += $output->writeString($this->identityServerPwdCredToken);
$xfer += $output->writeFieldEnd();
}
- if ($this->isNull !== null) {
- $xfer += $output->writeFieldBegin('isNull', TType::BOOL, 8);
- $xfer += $output->writeBool($this->isNull);
- $xfer += $output->writeFieldEnd();
- }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
diff --git a/app/libraries/Airavata/Model/Application/Io/Types.php b/app/libraries/Airavata/Model/Application/Io/Types.php
index b8bdf76..c417a5b 100644
--- a/app/libraries/Airavata/Model/Application/Io/Types.php
+++ b/app/libraries/Airavata/Model/Application/Io/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Application\Io;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Commons/Types.php b/app/libraries/Airavata/Model/Commons/Types.php
index ecc9532..2f657fe 100644
--- a/app/libraries/Airavata/Model/Commons/Types.php
+++ b/app/libraries/Airavata/Model/Commons/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Commons;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Credential/Store/Types.php b/app/libraries/Airavata/Model/Credential/Store/Types.php
index 861403d..31ec3ea 100644
--- a/app/libraries/Airavata/Model/Credential/Store/Types.php
+++ b/app/libraries/Airavata/Model/Credential/Store/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Credential\Store;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -17,15 +17,6 @@
use Thrift\Exception\TApplicationException;
-final class CredentialOwnerType {
- const GATEWAY = 0;
- const USER = 1;
- static public $__names = array(
- 0 => 'GATEWAY',
- 1 => 'USER',
- );
-}
-
/**
* Data Types supported in Airavata. The primitive data types
*
@@ -76,10 +67,6 @@
* @var string
*/
public $description = null;
- /**
- * @var int
- */
- public $credentialOwnerType = 0;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -116,10 +103,6 @@
'var' => 'description',
'type' => TType::STRING,
),
- 9 => array(
- 'var' => 'credentialOwnerType',
- 'type' => TType::I32,
- ),
);
}
if (is_array($vals)) {
@@ -147,9 +130,6 @@
if (isset($vals['description'])) {
$this->description = $vals['description'];
}
- if (isset($vals['credentialOwnerType'])) {
- $this->credentialOwnerType = $vals['credentialOwnerType'];
- }
}
}
@@ -228,13 +208,6 @@
$xfer += $input->skip($ftype);
}
break;
- case 9:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->credentialOwnerType);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
default:
$xfer += $input->skip($ftype);
break;
@@ -288,11 +261,6 @@
$xfer += $output->writeString($this->description);
$xfer += $output->writeFieldEnd();
}
- if ($this->credentialOwnerType !== null) {
- $xfer += $output->writeFieldBegin('credentialOwnerType', TType::I32, 9);
- $xfer += $output->writeI32($this->credentialOwnerType);
- $xfer += $output->writeFieldEnd();
- }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
@@ -312,6 +280,9 @@
*/
public $gatewayId = null;
/**
+ * The username corresponds to the Credential's `portalUserName` which is the username of the user that
+ * created the credential.
+ *
* @var string
*/
public $username = null;
diff --git a/app/libraries/Airavata/Model/Data/Movement/Types.php b/app/libraries/Airavata/Model/Data/Movement/Types.php
index 274a4a8..e13e977 100644
--- a/app/libraries/Airavata/Model/Data/Movement/Types.php
+++ b/app/libraries/Airavata/Model/Data/Movement/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Data\Movement;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -633,6 +633,18 @@
* @var int
*/
public $priorityOrder = 0;
+ /**
+ * @var int
+ */
+ public $creationTime = null;
+ /**
+ * @var int
+ */
+ public $updateTime = null;
+ /**
+ * @var string
+ */
+ public $storageResourceId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -649,6 +661,18 @@
'var' => 'priorityOrder',
'type' => TType::I32,
),
+ 4 => array(
+ 'var' => 'creationTime',
+ 'type' => TType::I64,
+ ),
+ 5 => array(
+ 'var' => 'updateTime',
+ 'type' => TType::I64,
+ ),
+ 6 => array(
+ 'var' => 'storageResourceId',
+ 'type' => TType::STRING,
+ ),
);
}
if (is_array($vals)) {
@@ -661,6 +685,15 @@
if (isset($vals['priorityOrder'])) {
$this->priorityOrder = $vals['priorityOrder'];
}
+ if (isset($vals['creationTime'])) {
+ $this->creationTime = $vals['creationTime'];
+ }
+ if (isset($vals['updateTime'])) {
+ $this->updateTime = $vals['updateTime'];
+ }
+ if (isset($vals['storageResourceId'])) {
+ $this->storageResourceId = $vals['storageResourceId'];
+ }
}
}
@@ -704,6 +737,27 @@
$xfer += $input->skip($ftype);
}
break;
+ case 4:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->creationTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updateTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->storageResourceId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -732,6 +786,21 @@
$xfer += $output->writeI32($this->priorityOrder);
$xfer += $output->writeFieldEnd();
}
+ if ($this->creationTime !== null) {
+ $xfer += $output->writeFieldBegin('creationTime', TType::I64, 4);
+ $xfer += $output->writeI64($this->creationTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updateTime !== null) {
+ $xfer += $output->writeFieldBegin('updateTime', TType::I64, 5);
+ $xfer += $output->writeI64($this->updateTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->storageResourceId !== null) {
+ $xfer += $output->writeFieldBegin('storageResourceId', TType::STRING, 6);
+ $xfer += $output->writeString($this->storageResourceId);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
diff --git a/app/libraries/Airavata/Model/Data/Replica/Types.php b/app/libraries/Airavata/Model/Data/Replica/Types.php
index d6e208e..295c058 100644
--- a/app/libraries/Airavata/Model/Data/Replica/Types.php
+++ b/app/libraries/Airavata/Model/Data/Replica/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Data\Replica;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Dbevent/Types.php b/app/libraries/Airavata/Model/Dbevent/Types.php
index bfbc983..0fa98e4 100644
--- a/app/libraries/Airavata/Model/Dbevent/Types.php
+++ b/app/libraries/Airavata/Model/Dbevent/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Dbevent;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Experiment/Types.php b/app/libraries/Airavata/Model/Experiment/Types.php
index f015ff4..26f9695 100644
--- a/app/libraries/Airavata/Model/Experiment/Types.php
+++ b/app/libraries/Airavata/Model/Experiment/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Experiment;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -102,6 +102,10 @@
* @var bool
*/
public $useUserCRPref = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -147,6 +151,10 @@
'var' => 'useUserCRPref',
'type' => TType::BOOL,
),
+ 11 => array(
+ 'var' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
);
}
if (is_array($vals)) {
@@ -180,6 +188,9 @@
if (isset($vals['useUserCRPref'])) {
$this->useUserCRPref = $vals['useUserCRPref'];
}
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
}
}
@@ -273,6 +284,13 @@
$xfer += $input->skip($ftype);
}
break;
+ case 11:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupResourceProfileId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -339,6 +357,11 @@
$xfer += $output->writeBool($this->useUserCRPref);
$xfer += $output->writeFieldEnd();
}
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 11);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
diff --git a/app/libraries/Airavata/Model/Group/Types.php b/app/libraries/Airavata/Model/Group/Types.php
index ec7a68e..0ccb16b 100644
--- a/app/libraries/Airavata/Model/Group/Types.php
+++ b/app/libraries/Airavata/Model/Group/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Group;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -21,12 +21,18 @@
const PROJECT = 0;
const EXPERIMENT = 1;
const DATA = 2;
- const OTHER = 3;
+ const APPLICATION_DEPLOYMENT = 3;
+ const GROUP_RESOURCE_PROFILE = 4;
+ const CREDENTIAL_TOKEN = 5;
+ const OTHER = 6;
static public $__names = array(
0 => 'PROJECT',
1 => 'EXPERIMENT',
2 => 'DATA',
- 3 => 'OTHER',
+ 3 => 'APPLICATION_DEPLOYMENT',
+ 4 => 'GROUP_RESOURCE_PROFILE',
+ 5 => 'CREDENTIAL_TOKEN',
+ 6 => 'OTHER',
);
}
diff --git a/app/libraries/Airavata/Model/Job/Types.php b/app/libraries/Airavata/Model/Job/Types.php
index bb25859..361f278 100644
--- a/app/libraries/Airavata/Model/Job/Types.php
+++ b/app/libraries/Airavata/Model/Job/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Job;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Messaging/Event/Types.php b/app/libraries/Airavata/Model/Messaging/Event/Types.php
index fed31a4..cb6df57 100644
--- a/app/libraries/Airavata/Model/Messaging/Event/Types.php
+++ b/app/libraries/Airavata/Model/Messaging/Event/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Messaging\Event;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Process/Types.php b/app/libraries/Airavata/Model/Process/Types.php
index dc69623..c64ed03 100644
--- a/app/libraries/Airavata/Model/Process/Types.php
+++ b/app/libraries/Airavata/Model/Process/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Process;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -125,6 +125,10 @@
* @var bool
*/
public $useUserCRPref = null;
+ /**
+ * @var string
+ */
+ public $groupResourceProfileId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -255,6 +259,10 @@
'var' => 'useUserCRPref',
'type' => TType::BOOL,
),
+ 25 => array(
+ 'var' => 'groupResourceProfileId',
+ 'type' => TType::STRING,
+ ),
);
}
if (is_array($vals)) {
@@ -330,6 +338,9 @@
if (isset($vals['useUserCRPref'])) {
$this->useUserCRPref = $vals['useUserCRPref'];
}
+ if (isset($vals['groupResourceProfileId'])) {
+ $this->groupResourceProfileId = $vals['groupResourceProfileId'];
+ }
}
}
@@ -586,6 +597,13 @@
$xfer += $input->skip($ftype);
}
break;
+ case 25:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupResourceProfileId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -794,6 +812,11 @@
$xfer += $output->writeBool($this->useUserCRPref);
$xfer += $output->writeFieldEnd();
}
+ if ($this->groupResourceProfileId !== null) {
+ $xfer += $output->writeFieldBegin('groupResourceProfileId', TType::STRING, 25);
+ $xfer += $output->writeString($this->groupResourceProfileId);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
diff --git a/app/libraries/Airavata/Model/Scheduling/Types.php b/app/libraries/Airavata/Model/Scheduling/Types.php
index 9eb8ebb..2e556a4 100644
--- a/app/libraries/Airavata/Model/Scheduling/Types.php
+++ b/app/libraries/Airavata/Model/Scheduling/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Scheduling;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Security/Types.php b/app/libraries/Airavata/Model/Security/Types.php
index f388971..ce71bfc 100644
--- a/app/libraries/Airavata/Model/Security/Types.php
+++ b/app/libraries/Airavata/Model/Security/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Security;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Sharing/Types.php b/app/libraries/Airavata/Model/Sharing/Types.php
new file mode 100644
index 0000000..7a74f6d
--- /dev/null
+++ b/app/libraries/Airavata/Model/Sharing/Types.php
@@ -0,0 +1,2533 @@
+<?php
+namespace Airavata\Model\Sharing;
+
+/**
+ * Autogenerated by Thrift Compiler (0.10.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+use Thrift\Base\TBase;
+use Thrift\Type\TType;
+use Thrift\Type\TMessageType;
+use Thrift\Exception\TException;
+use Thrift\Exception\TProtocolException;
+use Thrift\Protocol\TProtocol;
+use Thrift\Protocol\TBinaryProtocolAccelerated;
+use Thrift\Exception\TApplicationException;
+
+
+/**
+ * <p>This is an system internal enum used to define single user groups and multi users groups. Every user is also
+ * considered as a group in it's own right for implementation ease</p>
+ *
+ */
+final class GroupCardinality {
+ const SINGLE_USER = 0;
+ const MULTI_USER = 1;
+ static public $__names = array(
+ 0 => 'SINGLE_USER',
+ 1 => 'MULTI_USER',
+ );
+}
+
+/**
+ * <p>Group types can be either user level or domain level groups.</p>
+ *
+ */
+final class GroupType {
+ const DOMAIN_LEVEL_GROUP = 0;
+ const USER_LEVEL_GROUP = 1;
+ static public $__names = array(
+ 0 => 'DOMAIN_LEVEL_GROUP',
+ 1 => 'USER_LEVEL_GROUP',
+ );
+}
+
+/**
+ * <p>System internal data type to match group child types</p>
+ *
+ */
+final class GroupChildType {
+ const USER = 0;
+ const GROUP = 1;
+ static public $__names = array(
+ 0 => 'USER',
+ 1 => 'GROUP',
+ );
+}
+
+/**
+ * <p>This list of fields that can be used to search entities</p>
+ * <li>NAME : Name of the entity</li>
+ * <li>DESCRIPTION : Description of the entity</li>
+ * <li>FULL_TEXT : Full text field of the entity</li>
+ * <li>PARENT_ENTITY_ID : Parent entity id of the entity</li>
+ * <li>OWNER_ID : Owner of the entity</li>
+ * <li>CREATED_TIME : Created time of the entity</li>
+ * <li>UPDATED_TIME : Updated time of the entity</li>
+ * <li>SHARED_COUNT : Number of directly shared users and groups</li>
+ *
+ */
+final class EntitySearchField {
+ const NAME = 0;
+ const DESCRIPTION = 1;
+ const FULL_TEXT = 2;
+ const PARRENT_ENTITY_ID = 3;
+ const OWNER_ID = 4;
+ const PERMISSION_TYPE_ID = 5;
+ const CREATED_TIME = 6;
+ const UPDATED_TIME = 7;
+ const ENTITY_TYPE_ID = 8;
+ const SHARED_COUNT = 9;
+ static public $__names = array(
+ 0 => 'NAME',
+ 1 => 'DESCRIPTION',
+ 2 => 'FULL_TEXT',
+ 3 => 'PARRENT_ENTITY_ID',
+ 4 => 'OWNER_ID',
+ 5 => 'PERMISSION_TYPE_ID',
+ 6 => 'CREATED_TIME',
+ 7 => 'UPDATED_TIME',
+ 8 => 'ENTITY_TYPE_ID',
+ 9 => 'SHARED_COUNT',
+ );
+}
+
+/**
+ * <p>Different search operators that can be used with the entity search fields</p>
+ * <li>EQUAL : Simply matches for equality. Applicable for name, and parent entity id</li>
+ * <li>LIKE : Check for the condition %$FIELD% condition. Applicable for name, and description</li>
+ * <li>FULL_TEXT : Does a full text search. Only applicable for the FULL_TEXT field.</li>
+ * <li>GTE : Greater than or equal. Only applicable for created time, updated time and shared count.</li>
+ * <li>LTE : Less than or equal. Only applicable for created time, updated time and shared count.</li>
+ *
+ */
+final class SearchCondition {
+ const EQUAL = 0;
+ const LIKE = 1;
+ const FULL_TEXT = 2;
+ const GTE = 3;
+ const LTE = 4;
+ const NOT = 5;
+ static public $__names = array(
+ 0 => 'EQUAL',
+ 1 => 'LIKE',
+ 2 => 'FULL_TEXT',
+ 3 => 'GTE',
+ 4 => 'LTE',
+ 5 => 'NOT',
+ );
+}
+
+/**
+ * <p>This is an internal enum type for managing sharings</p>
+ *
+ */
+final class SharingType {
+ const DIRECT_NON_CASCADING = 0;
+ const DIRECT_CASCADING = 1;
+ const INDIRECT_CASCADING = 2;
+ static public $__names = array(
+ 0 => 'DIRECT_NON_CASCADING',
+ 1 => 'DIRECT_CASCADING',
+ 2 => 'INDIRECT_CASCADING',
+ );
+}
+
+/**
+ * <p>Domain is the entity that enables multi-tenency in this componenet. Every tenant will be
+ * operating separately it's own silo which is identified by the domain id. In the current implementation domain id
+ * will be same as the domain name</p>
+ * <li>domainId : Will be generated by the server based on the domain name</li>
+ * <li><b>name</b> : A single word name that identifies the domain e.g seagrid, ultrascan</li>
+ * <li>description : A short description for the domain</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ */
+class Domain {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = "DO_NOT_SET_AT_CLIENTS_ID";
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 5 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Domain';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('Domain');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 2);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 3);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 4);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 5);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>User is the model used to register a user in the system. Minimal user information will be required to provide
+ * regarding the user.</p>
+ * <li><b>userId</b> : User id provided by the client</li>
+ * <li><b>domainId</b> : Domain id for that user</li>
+ * <li><b>userName</b> : User name for the user</li>
+ * <li><b>firstName</b> : First name of the user</li>
+ * <li><b>lastName</b> : Last name of the user</li>
+ * <li><b>email</b> : Email address of the user</li>
+ * <li>icon : A binary field for storing the user icon</li>
+ * <li>createdTime : If client provides this value then the system will use it if not the current time will be set</li>
+ * <li>updatedTime : If client provides this value then the system will use it if not the current time will be set</li>
+ *
+ */
+class User {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $userId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userName = null;
+ /**
+ * @var string
+ */
+ public $firstName = null;
+ /**
+ * @var string
+ */
+ public $lastName = null;
+ /**
+ * @var string
+ */
+ public $email = null;
+ /**
+ * @var string
+ */
+ public $icon = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'userName',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'firstName',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'lastName',
+ 'type' => TType::STRING,
+ ),
+ 6 => array(
+ 'var' => 'email',
+ 'type' => TType::STRING,
+ ),
+ 7 => array(
+ 'var' => 'icon',
+ 'type' => TType::STRING,
+ ),
+ 8 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 9 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userName'])) {
+ $this->userName = $vals['userName'];
+ }
+ if (isset($vals['firstName'])) {
+ $this->firstName = $vals['firstName'];
+ }
+ if (isset($vals['lastName'])) {
+ $this->lastName = $vals['lastName'];
+ }
+ if (isset($vals['email'])) {
+ $this->email = $vals['email'];
+ }
+ if (isset($vals['icon'])) {
+ $this->icon = $vals['icon'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'User';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->userId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->firstName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->lastName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->email);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->icon);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 9:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('User');
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 1);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userName !== null) {
+ $xfer += $output->writeFieldBegin('userName', TType::STRING, 3);
+ $xfer += $output->writeString($this->userName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->firstName !== null) {
+ $xfer += $output->writeFieldBegin('firstName', TType::STRING, 4);
+ $xfer += $output->writeString($this->firstName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->lastName !== null) {
+ $xfer += $output->writeFieldBegin('lastName', TType::STRING, 5);
+ $xfer += $output->writeString($this->lastName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->email !== null) {
+ $xfer += $output->writeFieldBegin('email', TType::STRING, 6);
+ $xfer += $output->writeString($this->email);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->icon !== null) {
+ $xfer += $output->writeFieldBegin('icon', TType::STRING, 7);
+ $xfer += $output->writeString($this->icon);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 8);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 9);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupAdmin {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $adminId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'adminId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['adminId'])) {
+ $this->adminId = $vals['adminId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupAdmin';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->adminId);
+ } 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('GroupAdmin');
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 1);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminId !== null) {
+ $xfer += $output->writeFieldBegin('adminId', TType::STRING, 3);
+ $xfer += $output->writeString($this->adminId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>User group is a collection of users.</p>
+ * <li><b>groupId</b> : Group id provided by the client</li>
+ * <li><b>domainId</b> : Domain id for this user group</li>
+ * <li><b>name</b> : Name for the user group. should be one word</li>
+ * <li>description : Short description for the group.</li>
+ * <li><b>ownerId</b> : Owner id of this group.</li>
+ * <li><b>groupType</b> : Group type (DOMAIN_LEVEL_GROUP, USER_LEVEL_GROUP)</li>
+ * <li><b>groupCardinality</b> : Group cardinality (SINGLE_USER, MULTI_USER)</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ * <li>groupAdmins : Admins for the group</li>
+ *
+ */
+class UserGroup {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var string
+ */
+ public $ownerId = null;
+ /**
+ * @var int
+ */
+ public $groupType = null;
+ /**
+ * @var int
+ */
+ public $groupCardinality = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+ /**
+ * @var \Airavata\Model\Sharing\GroupAdmin[]
+ */
+ public $groupAdmins = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'ownerId',
+ 'type' => TType::STRING,
+ ),
+ 6 => array(
+ 'var' => 'groupType',
+ 'type' => TType::I32,
+ ),
+ 7 => array(
+ 'var' => 'groupCardinality',
+ 'type' => TType::I32,
+ ),
+ 8 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 9 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ 10 => array(
+ 'var' => 'groupAdmins',
+ 'type' => TType::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\GroupAdmin',
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['ownerId'])) {
+ $this->ownerId = $vals['ownerId'];
+ }
+ if (isset($vals['groupType'])) {
+ $this->groupType = $vals['groupType'];
+ }
+ if (isset($vals['groupCardinality'])) {
+ $this->groupCardinality = $vals['groupCardinality'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ if (isset($vals['groupAdmins'])) {
+ $this->groupAdmins = $vals['groupAdmins'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'UserGroup';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->ownerId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->groupType);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->groupCardinality);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 9:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 10:
+ if ($ftype == TType::LST) {
+ $this->groupAdmins = array();
+ $_size0 = 0;
+ $_etype3 = 0;
+ $xfer += $input->readListBegin($_etype3, $_size0);
+ for ($_i4 = 0; $_i4 < $_size0; ++$_i4)
+ {
+ $elem5 = null;
+ $elem5 = new \Airavata\Model\Sharing\GroupAdmin();
+ $xfer += $elem5->read($input);
+ $this->groupAdmins []= $elem5;
+ }
+ $xfer += $input->readListEnd();
+ } 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('UserGroup');
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 1);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 3);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 4);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ownerId !== null) {
+ $xfer += $output->writeFieldBegin('ownerId', TType::STRING, 5);
+ $xfer += $output->writeString($this->ownerId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupType !== null) {
+ $xfer += $output->writeFieldBegin('groupType', TType::I32, 6);
+ $xfer += $output->writeI32($this->groupType);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupCardinality !== null) {
+ $xfer += $output->writeFieldBegin('groupCardinality', TType::I32, 7);
+ $xfer += $output->writeI32($this->groupCardinality);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 8);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 9);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupAdmins !== null) {
+ if (!is_array($this->groupAdmins)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('groupAdmins', TType::LST, 10);
+ {
+ $output->writeListBegin(TType::STRUCT, count($this->groupAdmins));
+ {
+ foreach ($this->groupAdmins as $iter6)
+ {
+ $xfer += $iter6->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>System internal data type to map group memberships</p>
+ *
+ */
+class GroupMembership {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $parentId = null;
+ /**
+ * @var string
+ */
+ public $childId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var int
+ */
+ public $childType = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'parentId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'childId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'childType',
+ 'type' => TType::I32,
+ ),
+ 5 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 6 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['parentId'])) {
+ $this->parentId = $vals['parentId'];
+ }
+ if (isset($vals['childId'])) {
+ $this->childId = $vals['childId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['childType'])) {
+ $this->childType = $vals['childType'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupMembership';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->parentId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->childId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->childType);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('GroupMembership');
+ if ($this->parentId !== null) {
+ $xfer += $output->writeFieldBegin('parentId', TType::STRING, 1);
+ $xfer += $output->writeString($this->parentId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->childId !== null) {
+ $xfer += $output->writeFieldBegin('childId', TType::STRING, 2);
+ $xfer += $output->writeString($this->childId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 3);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->childType !== null) {
+ $xfer += $output->writeFieldBegin('childType', TType::I32, 4);
+ $xfer += $output->writeI32($this->childType);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 5);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 6);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>client defined entity types</p>
+ * <li><b>entityTypeId</b> : Entity type id provided by the client</li>
+ * <li><b>domainId</b> : Domain id of the domain.</li>
+ * <li><b>name</b> : Name for the entity type. Should be a single word.</li>
+ * <li>description : Short description for the entity type.</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ */
+class EntityType {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $entityTypeId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entityTypeId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 6 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entityTypeId'])) {
+ $this->entityTypeId = $vals['entityTypeId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'EntityType';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->entityTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('EntityType');
+ if ($this->entityTypeId !== null) {
+ $xfer += $output->writeFieldBegin('entityTypeId', TType::STRING, 1);
+ $xfer += $output->writeString($this->entityTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 3);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 4);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 5);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 6);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>Container object for search criteria</p>
+ * <li><b>searchField</b> : Entity search field</li>
+ * <li><b>value</b> : Search value</li>
+ * <li><b>searchCondition</b> : EQUAL, LIKE etc..</li>
+ *
+ */
+class SearchCriteria {
+ static $_TSPEC;
+
+ /**
+ * @var int
+ */
+ public $searchField = null;
+ /**
+ * @var string
+ */
+ public $value = null;
+ /**
+ * @var int
+ */
+ public $searchCondition = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'searchField',
+ 'type' => TType::I32,
+ ),
+ 2 => array(
+ 'var' => 'value',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'searchCondition',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['searchField'])) {
+ $this->searchField = $vals['searchField'];
+ }
+ if (isset($vals['value'])) {
+ $this->value = $vals['value'];
+ }
+ if (isset($vals['searchCondition'])) {
+ $this->searchCondition = $vals['searchCondition'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SearchCriteria';
+ }
+
+ 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::I32) {
+ $xfer += $input->readI32($this->searchField);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->value);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->searchCondition);
+ } 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('SearchCriteria');
+ if ($this->searchField !== null) {
+ $xfer += $output->writeFieldBegin('searchField', TType::I32, 1);
+ $xfer += $output->writeI32($this->searchField);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->value !== null) {
+ $xfer += $output->writeFieldBegin('value', TType::STRING, 2);
+ $xfer += $output->writeString($this->value);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->searchCondition !== null) {
+ $xfer += $output->writeFieldBegin('searchCondition', TType::I32, 3);
+ $xfer += $output->writeI32($this->searchCondition);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>Entity object which is used to register an entity in the system.</p>
+ * <li><b>entityId</b> : Entity id provided by the client</li>
+ * <li><b>domainId</b> : Domain id</li>
+ * <li><b>entityTypeId</b> : Entity type id</li>
+ * <li><b>ownerId</b> : Owner id</li>
+ * <li>parentEntityId : Parent entity id</li>
+ * <li><b>name</b> : Name</li>
+ * <li>description : Short description for the entity</li>
+ * <li>binaryData : Any information stored in binary format</li>
+ * <li>fullText : A string which will be considered for full text search</li>
+ * <li><b>originalEntityCreationTime</b> : When registering old records what is the original entity creation time. If not
+ * set will be default to current time</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ */
+class Entity {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityTypeId = null;
+ /**
+ * @var string
+ */
+ public $ownerId = null;
+ /**
+ * @var string
+ */
+ public $parentEntityId = null;
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var string
+ */
+ public $binaryData = null;
+ /**
+ * @var string
+ */
+ public $fullText = null;
+ /**
+ * @var int
+ */
+ public $sharedCount = 0;
+ /**
+ * @var int
+ */
+ public $originalEntityCreationTime = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'entityTypeId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'ownerId',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'parentEntityId',
+ 'type' => TType::STRING,
+ ),
+ 6 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 7 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 8 => array(
+ 'var' => 'binaryData',
+ 'type' => TType::STRING,
+ ),
+ 9 => array(
+ 'var' => 'fullText',
+ 'type' => TType::STRING,
+ ),
+ 10 => array(
+ 'var' => 'sharedCount',
+ 'type' => TType::I64,
+ ),
+ 11 => array(
+ 'var' => 'originalEntityCreationTime',
+ 'type' => TType::I64,
+ ),
+ 12 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 13 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityTypeId'])) {
+ $this->entityTypeId = $vals['entityTypeId'];
+ }
+ if (isset($vals['ownerId'])) {
+ $this->ownerId = $vals['ownerId'];
+ }
+ if (isset($vals['parentEntityId'])) {
+ $this->parentEntityId = $vals['parentEntityId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['binaryData'])) {
+ $this->binaryData = $vals['binaryData'];
+ }
+ if (isset($vals['fullText'])) {
+ $this->fullText = $vals['fullText'];
+ }
+ if (isset($vals['sharedCount'])) {
+ $this->sharedCount = $vals['sharedCount'];
+ }
+ if (isset($vals['originalEntityCreationTime'])) {
+ $this->originalEntityCreationTime = $vals['originalEntityCreationTime'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Entity';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->ownerId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->parentEntityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->binaryData);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 9:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->fullText);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 10:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->sharedCount);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 11:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->originalEntityCreationTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 12:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 13:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('Entity');
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 1);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityTypeId !== null) {
+ $xfer += $output->writeFieldBegin('entityTypeId', TType::STRING, 3);
+ $xfer += $output->writeString($this->entityTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ownerId !== null) {
+ $xfer += $output->writeFieldBegin('ownerId', TType::STRING, 4);
+ $xfer += $output->writeString($this->ownerId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->parentEntityId !== null) {
+ $xfer += $output->writeFieldBegin('parentEntityId', TType::STRING, 5);
+ $xfer += $output->writeString($this->parentEntityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 6);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 7);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->binaryData !== null) {
+ $xfer += $output->writeFieldBegin('binaryData', TType::STRING, 8);
+ $xfer += $output->writeString($this->binaryData);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->fullText !== null) {
+ $xfer += $output->writeFieldBegin('fullText', TType::STRING, 9);
+ $xfer += $output->writeString($this->fullText);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sharedCount !== null) {
+ $xfer += $output->writeFieldBegin('sharedCount', TType::I64, 10);
+ $xfer += $output->writeI64($this->sharedCount);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->originalEntityCreationTime !== null) {
+ $xfer += $output->writeFieldBegin('originalEntityCreationTime', TType::I64, 11);
+ $xfer += $output->writeI64($this->originalEntityCreationTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 12);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 13);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>Object for creating client defined permission type</p>
+ * <li><b>permissionTypeId</b> : Permission type id provided by the client</li>
+ * <li><b>domainId</b> : Domain id</li>
+ * <li><b>name</b> : Single word name for the permission</li>
+ * <li>description : Short description for the permission type</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ */
+class PermissionType {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 6 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'PermissionType';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('PermissionType');
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 1);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 3);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 4);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 5);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 6);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>This is an internal enum type for managing sharings</p>
+ *
+ */
+class Sharing {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var int
+ */
+ public $sharingType = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $inheritedParentId = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'sharingType',
+ 'type' => TType::I32,
+ ),
+ 5 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 6 => array(
+ 'var' => 'inheritedParentId',
+ 'type' => TType::STRING,
+ ),
+ 7 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 8 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['sharingType'])) {
+ $this->sharingType = $vals['sharingType'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['inheritedParentId'])) {
+ $this->inheritedParentId = $vals['inheritedParentId'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Sharing';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->sharingType);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->inheritedParentId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('Sharing');
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 1);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sharingType !== null) {
+ $xfer += $output->writeFieldBegin('sharingType', TType::I32, 4);
+ $xfer += $output->writeI32($this->sharingType);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 5);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->inheritedParentId !== null) {
+ $xfer += $output->writeFieldBegin('inheritedParentId', TType::STRING, 6);
+ $xfer += $output->writeString($this->inheritedParentId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 7);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 8);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>Exception model used in the sharing registry service</p>
+ *
+ */
+class SharingRegistryException extends TException {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $message = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'message',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['message'])) {
+ $this->message = $vals['message'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryException';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->message);
+ } 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('SharingRegistryException');
+ if ($this->message !== null) {
+ $xfer += $output->writeFieldBegin('message', TType::STRING, 1);
+ $xfer += $output->writeString($this->message);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * This exception is thrown when you try to save a duplicate entity that already exists
+ * in the database.
+ *
+ * message: contains the associated error message
+ *
+ */
+class DuplicateEntryException extends TException {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $message = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'message',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['message'])) {
+ $this->message = $vals['message'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'DuplicateEntryException';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->message);
+ } 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('DuplicateEntryException');
+ if ($this->message !== null) {
+ $xfer += $output->writeFieldBegin('message', TType::STRING, 1);
+ $xfer += $output->writeString($this->message);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+final class Constant extends \Thrift\Type\TConstant {
+ static protected $DO_NOT_SET_AT_CLIENTS_ID;
+
+ static protected function init_DO_NOT_SET_AT_CLIENTS_ID() {
+ return "DO_NOT_SET_AT_CLIENTS_ID";
+ }
+}
+
+
diff --git a/app/libraries/Airavata/Model/Status/Types.php b/app/libraries/Airavata/Model/Status/Types.php
index 0a0a23b..5efbb80 100644
--- a/app/libraries/Airavata/Model/Status/Types.php
+++ b/app/libraries/Airavata/Model/Status/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Status;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -137,6 +137,10 @@
* @var string
*/
public $reason = null;
+ /**
+ * @var string
+ */
+ public $statusId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -153,6 +157,10 @@
'var' => 'reason',
'type' => TType::STRING,
),
+ 4 => array(
+ 'var' => 'statusId',
+ 'type' => TType::STRING,
+ ),
);
}
if (is_array($vals)) {
@@ -165,6 +173,9 @@
if (isset($vals['reason'])) {
$this->reason = $vals['reason'];
}
+ if (isset($vals['statusId'])) {
+ $this->statusId = $vals['statusId'];
+ }
}
}
@@ -208,6 +219,13 @@
$xfer += $input->skip($ftype);
}
break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->statusId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -236,6 +254,11 @@
$xfer += $output->writeString($this->reason);
$xfer += $output->writeFieldEnd();
}
+ if ($this->statusId !== null) {
+ $xfer += $output->writeFieldBegin('statusId', TType::STRING, 4);
+ $xfer += $output->writeString($this->statusId);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
@@ -258,6 +281,10 @@
* @var string
*/
public $reason = null;
+ /**
+ * @var string
+ */
+ public $statusId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -274,6 +301,10 @@
'var' => 'reason',
'type' => TType::STRING,
),
+ 4 => array(
+ 'var' => 'statusId',
+ 'type' => TType::STRING,
+ ),
);
}
if (is_array($vals)) {
@@ -286,6 +317,9 @@
if (isset($vals['reason'])) {
$this->reason = $vals['reason'];
}
+ if (isset($vals['statusId'])) {
+ $this->statusId = $vals['statusId'];
+ }
}
}
@@ -329,6 +363,13 @@
$xfer += $input->skip($ftype);
}
break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->statusId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -357,6 +398,11 @@
$xfer += $output->writeString($this->reason);
$xfer += $output->writeFieldEnd();
}
+ if ($this->statusId !== null) {
+ $xfer += $output->writeFieldBegin('statusId', TType::STRING, 4);
+ $xfer += $output->writeString($this->statusId);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
@@ -379,6 +425,10 @@
* @var string
*/
public $reason = null;
+ /**
+ * @var string
+ */
+ public $statusId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -395,6 +445,10 @@
'var' => 'reason',
'type' => TType::STRING,
),
+ 4 => array(
+ 'var' => 'statusId',
+ 'type' => TType::STRING,
+ ),
);
}
if (is_array($vals)) {
@@ -407,6 +461,9 @@
if (isset($vals['reason'])) {
$this->reason = $vals['reason'];
}
+ if (isset($vals['statusId'])) {
+ $this->statusId = $vals['statusId'];
+ }
}
}
@@ -450,6 +507,13 @@
$xfer += $input->skip($ftype);
}
break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->statusId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -478,6 +542,11 @@
$xfer += $output->writeString($this->reason);
$xfer += $output->writeFieldEnd();
}
+ if ($this->statusId !== null) {
+ $xfer += $output->writeFieldBegin('statusId', TType::STRING, 4);
+ $xfer += $output->writeString($this->statusId);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
@@ -500,6 +569,10 @@
* @var string
*/
public $reason = null;
+ /**
+ * @var string
+ */
+ public $statusId = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -516,6 +589,10 @@
'var' => 'reason',
'type' => TType::STRING,
),
+ 4 => array(
+ 'var' => 'statusId',
+ 'type' => TType::STRING,
+ ),
);
}
if (is_array($vals)) {
@@ -528,6 +605,9 @@
if (isset($vals['reason'])) {
$this->reason = $vals['reason'];
}
+ if (isset($vals['statusId'])) {
+ $this->statusId = $vals['statusId'];
+ }
}
}
@@ -571,6 +651,13 @@
$xfer += $input->skip($ftype);
}
break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->statusId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -599,6 +686,11 @@
$xfer += $output->writeString($this->reason);
$xfer += $output->writeFieldEnd();
}
+ if ($this->statusId !== null) {
+ $xfer += $output->writeFieldBegin('statusId', TType::STRING, 4);
+ $xfer += $output->writeString($this->statusId);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
diff --git a/app/libraries/Airavata/Model/Task/Types.php b/app/libraries/Airavata/Model/Task/Types.php
index 202fde8..5691abf 100644
--- a/app/libraries/Airavata/Model/Task/Types.php
+++ b/app/libraries/Airavata/Model/Task/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Task;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Tenant/Types.php b/app/libraries/Airavata/Model/Tenant/Types.php
index c1ad4ec..84efc01 100644
--- a/app/libraries/Airavata/Model/Tenant/Types.php
+++ b/app/libraries/Airavata/Model/Tenant/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Tenant;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Types.php b/app/libraries/Airavata/Model/Types.php
index 71d3e01..fcfe8dc 100644
--- a/app/libraries/Airavata/Model/Types.php
+++ b/app/libraries/Airavata/Model/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -17,1115 +17,4 @@
use Thrift\Exception\TApplicationException;
-final class WorkflowState {
- const CREATED = 0;
- const STARTED = 1;
- const EXECUTING = 2;
- const COMPLETED = 3;
- const FAILED = 4;
- const CANCELLING = 5;
- const CANCELED = 6;
- static public $__names = array(
- 0 => 'CREATED',
- 1 => 'STARTED',
- 2 => 'EXECUTING',
- 3 => 'COMPLETED',
- 4 => 'FAILED',
- 5 => 'CANCELLING',
- 6 => 'CANCELED',
- );
-}
-
-final class ComponentState {
- const CREATED = 0;
- const WAITING = 1;
- const READY = 2;
- const RUNNING = 3;
- const COMPLETED = 4;
- const FAILED = 5;
- const CANCELED = 6;
- static public $__names = array(
- 0 => 'CREATED',
- 1 => 'WAITING',
- 2 => 'READY',
- 3 => 'RUNNING',
- 4 => 'COMPLETED',
- 5 => 'FAILED',
- 6 => 'CANCELED',
- );
-}
-
-class WorkflowModel {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $templateId = "DO_NOT_SET_AT_CLIENTS";
- /**
- * @var string
- */
- public $name = null;
- /**
- * @var string
- */
- public $graph = null;
- /**
- * @var string
- */
- public $gatewayId = null;
- /**
- * @var string
- */
- public $createdUser = null;
- /**
- * @var string
- */
- public $image = null;
- /**
- * @var \Airavata\Model\Application\Io\InputDataObjectType[]
- */
- public $workflowInputs = null;
- /**
- * @var \Airavata\Model\Application\Io\OutputDataObjectType[]
- */
- public $workflowOutputs = null;
- /**
- * @var int
- */
- public $creationTime = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'templateId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'name',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'graph',
- 'type' => TType::STRING,
- ),
- 4 => array(
- 'var' => 'gatewayId',
- 'type' => TType::STRING,
- ),
- 5 => array(
- 'var' => 'createdUser',
- 'type' => TType::STRING,
- ),
- 6 => array(
- 'var' => 'image',
- 'type' => TType::STRING,
- ),
- 7 => array(
- 'var' => 'workflowInputs',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\Application\Io\InputDataObjectType',
- ),
- ),
- 8 => array(
- 'var' => 'workflowOutputs',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\Application\Io\OutputDataObjectType',
- ),
- ),
- 9 => array(
- 'var' => 'creationTime',
- 'type' => TType::I64,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['templateId'])) {
- $this->templateId = $vals['templateId'];
- }
- if (isset($vals['name'])) {
- $this->name = $vals['name'];
- }
- if (isset($vals['graph'])) {
- $this->graph = $vals['graph'];
- }
- if (isset($vals['gatewayId'])) {
- $this->gatewayId = $vals['gatewayId'];
- }
- if (isset($vals['createdUser'])) {
- $this->createdUser = $vals['createdUser'];
- }
- if (isset($vals['image'])) {
- $this->image = $vals['image'];
- }
- if (isset($vals['workflowInputs'])) {
- $this->workflowInputs = $vals['workflowInputs'];
- }
- if (isset($vals['workflowOutputs'])) {
- $this->workflowOutputs = $vals['workflowOutputs'];
- }
- if (isset($vals['creationTime'])) {
- $this->creationTime = $vals['creationTime'];
- }
- }
- }
-
- public function getName() {
- return 'WorkflowModel';
- }
-
- 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::STRING) {
- $xfer += $input->readString($this->templateId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->name);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->graph);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->gatewayId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 5:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->createdUser);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 6:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->image);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 7:
- if ($ftype == TType::LST) {
- $this->workflowInputs = array();
- $_size0 = 0;
- $_etype3 = 0;
- $xfer += $input->readListBegin($_etype3, $_size0);
- for ($_i4 = 0; $_i4 < $_size0; ++$_i4)
- {
- $elem5 = null;
- $elem5 = new \Airavata\Model\Application\Io\InputDataObjectType();
- $xfer += $elem5->read($input);
- $this->workflowInputs []= $elem5;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 8:
- if ($ftype == TType::LST) {
- $this->workflowOutputs = array();
- $_size6 = 0;
- $_etype9 = 0;
- $xfer += $input->readListBegin($_etype9, $_size6);
- for ($_i10 = 0; $_i10 < $_size6; ++$_i10)
- {
- $elem11 = null;
- $elem11 = new \Airavata\Model\Application\Io\OutputDataObjectType();
- $xfer += $elem11->read($input);
- $this->workflowOutputs []= $elem11;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 9:
- if ($ftype == TType::I64) {
- $xfer += $input->readI64($this->creationTime);
- } 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('WorkflowModel');
- if ($this->templateId !== null) {
- $xfer += $output->writeFieldBegin('templateId', TType::STRING, 1);
- $xfer += $output->writeString($this->templateId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->name !== null) {
- $xfer += $output->writeFieldBegin('name', TType::STRING, 2);
- $xfer += $output->writeString($this->name);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->graph !== null) {
- $xfer += $output->writeFieldBegin('graph', TType::STRING, 3);
- $xfer += $output->writeString($this->graph);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->gatewayId !== null) {
- $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 4);
- $xfer += $output->writeString($this->gatewayId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->createdUser !== null) {
- $xfer += $output->writeFieldBegin('createdUser', TType::STRING, 5);
- $xfer += $output->writeString($this->createdUser);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->image !== null) {
- $xfer += $output->writeFieldBegin('image', TType::STRING, 6);
- $xfer += $output->writeString($this->image);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->workflowInputs !== null) {
- if (!is_array($this->workflowInputs)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('workflowInputs', TType::LST, 7);
- {
- $output->writeListBegin(TType::STRUCT, count($this->workflowInputs));
- {
- foreach ($this->workflowInputs as $iter12)
- {
- $xfer += $iter12->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->workflowOutputs !== null) {
- if (!is_array($this->workflowOutputs)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('workflowOutputs', TType::LST, 8);
- {
- $output->writeListBegin(TType::STRUCT, count($this->workflowOutputs));
- {
- foreach ($this->workflowOutputs as $iter13)
- {
- $xfer += $iter13->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->creationTime !== null) {
- $xfer += $output->writeFieldBegin('creationTime', TType::I64, 9);
- $xfer += $output->writeI64($this->creationTime);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class ComponentStatus {
- static $_TSPEC;
-
- /**
- * @var int
- */
- public $state = 0;
- /**
- * @var string
- */
- public $reason = null;
- /**
- * @var int
- */
- public $timeofStateChange = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'state',
- 'type' => TType::I32,
- ),
- 2 => array(
- 'var' => 'reason',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'timeofStateChange',
- 'type' => TType::I64,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['state'])) {
- $this->state = $vals['state'];
- }
- if (isset($vals['reason'])) {
- $this->reason = $vals['reason'];
- }
- if (isset($vals['timeofStateChange'])) {
- $this->timeofStateChange = $vals['timeofStateChange'];
- }
- }
- }
-
- public function getName() {
- return 'ComponentStatus';
- }
-
- 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::I32) {
- $xfer += $input->readI32($this->state);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->reason);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::I64) {
- $xfer += $input->readI64($this->timeofStateChange);
- } 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('ComponentStatus');
- if ($this->state !== null) {
- $xfer += $output->writeFieldBegin('state', TType::I32, 1);
- $xfer += $output->writeI32($this->state);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->reason !== null) {
- $xfer += $output->writeFieldBegin('reason', TType::STRING, 2);
- $xfer += $output->writeString($this->reason);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->timeofStateChange !== null) {
- $xfer += $output->writeFieldBegin('timeofStateChange', TType::I64, 3);
- $xfer += $output->writeI64($this->timeofStateChange);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class WorkflowStatus {
- static $_TSPEC;
-
- /**
- * @var int
- */
- public $state = null;
- /**
- * @var int
- */
- public $timeOfStateChange = null;
- /**
- * @var string
- */
- public $reason = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'state',
- 'type' => TType::I32,
- ),
- 2 => array(
- 'var' => 'timeOfStateChange',
- 'type' => TType::I64,
- ),
- 3 => array(
- 'var' => 'reason',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['state'])) {
- $this->state = $vals['state'];
- }
- if (isset($vals['timeOfStateChange'])) {
- $this->timeOfStateChange = $vals['timeOfStateChange'];
- }
- if (isset($vals['reason'])) {
- $this->reason = $vals['reason'];
- }
- }
- }
-
- public function getName() {
- return 'WorkflowStatus';
- }
-
- 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::I32) {
- $xfer += $input->readI32($this->state);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::I64) {
- $xfer += $input->readI64($this->timeOfStateChange);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->reason);
- } 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('WorkflowStatus');
- if ($this->state !== null) {
- $xfer += $output->writeFieldBegin('state', TType::I32, 1);
- $xfer += $output->writeI32($this->state);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->timeOfStateChange !== null) {
- $xfer += $output->writeFieldBegin('timeOfStateChange', TType::I64, 2);
- $xfer += $output->writeI64($this->timeOfStateChange);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->reason !== null) {
- $xfer += $output->writeFieldBegin('reason', TType::STRING, 3);
- $xfer += $output->writeString($this->reason);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class EdgeModel {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $edgeId = "DO_NOT_SET_AT_CLIENTS";
- /**
- * @var string
- */
- public $name = null;
- /**
- * @var \Airavata\Model\ComponentStatus
- */
- public $status = null;
- /**
- * @var string
- */
- public $description = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'edgeId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'name',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'status',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\ComponentStatus',
- ),
- 4 => array(
- 'var' => 'description',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['edgeId'])) {
- $this->edgeId = $vals['edgeId'];
- }
- if (isset($vals['name'])) {
- $this->name = $vals['name'];
- }
- if (isset($vals['status'])) {
- $this->status = $vals['status'];
- }
- if (isset($vals['description'])) {
- $this->description = $vals['description'];
- }
- }
- }
-
- public function getName() {
- return 'EdgeModel';
- }
-
- 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::STRING) {
- $xfer += $input->readString($this->edgeId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->name);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->status = new \Airavata\Model\ComponentStatus();
- $xfer += $this->status->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->description);
- } 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('EdgeModel');
- if ($this->edgeId !== null) {
- $xfer += $output->writeFieldBegin('edgeId', TType::STRING, 1);
- $xfer += $output->writeString($this->edgeId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->name !== null) {
- $xfer += $output->writeFieldBegin('name', TType::STRING, 2);
- $xfer += $output->writeString($this->name);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->status !== null) {
- if (!is_object($this->status)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('status', TType::STRUCT, 3);
- $xfer += $this->status->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->description !== null) {
- $xfer += $output->writeFieldBegin('description', TType::STRING, 4);
- $xfer += $output->writeString($this->description);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class PortModel {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $portId = "DO_NOT_SET_AT_CLIENTS";
- /**
- * @var string
- */
- public $name = null;
- /**
- * @var \Airavata\Model\ComponentStatus
- */
- public $status = null;
- /**
- * @var string
- */
- public $value = null;
- /**
- * @var string
- */
- public $description = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'portId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'name',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'status',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\ComponentStatus',
- ),
- 4 => array(
- 'var' => 'value',
- 'type' => TType::STRING,
- ),
- 5 => array(
- 'var' => 'description',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['portId'])) {
- $this->portId = $vals['portId'];
- }
- if (isset($vals['name'])) {
- $this->name = $vals['name'];
- }
- if (isset($vals['status'])) {
- $this->status = $vals['status'];
- }
- if (isset($vals['value'])) {
- $this->value = $vals['value'];
- }
- if (isset($vals['description'])) {
- $this->description = $vals['description'];
- }
- }
- }
-
- public function getName() {
- return 'PortModel';
- }
-
- 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::STRING) {
- $xfer += $input->readString($this->portId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->name);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->status = new \Airavata\Model\ComponentStatus();
- $xfer += $this->status->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->value);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 5:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->description);
- } 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('PortModel');
- if ($this->portId !== null) {
- $xfer += $output->writeFieldBegin('portId', TType::STRING, 1);
- $xfer += $output->writeString($this->portId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->name !== null) {
- $xfer += $output->writeFieldBegin('name', TType::STRING, 2);
- $xfer += $output->writeString($this->name);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->status !== null) {
- if (!is_object($this->status)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('status', TType::STRUCT, 3);
- $xfer += $this->status->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->value !== null) {
- $xfer += $output->writeFieldBegin('value', TType::STRING, 4);
- $xfer += $output->writeString($this->value);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->description !== null) {
- $xfer += $output->writeFieldBegin('description', TType::STRING, 5);
- $xfer += $output->writeString($this->description);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class NodeModel {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $nodeId = "DO_NOT_SET_AT_CLIENTS";
- /**
- * @var string
- */
- public $name = null;
- /**
- * @var string
- */
- public $applicationId = null;
- /**
- * @var string
- */
- public $applicationName = null;
- /**
- * @var \Airavata\Model\ComponentStatus
- */
- public $status = null;
- /**
- * @var string
- */
- public $description = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'nodeId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'name',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'applicationId',
- 'type' => TType::STRING,
- ),
- 4 => array(
- 'var' => 'applicationName',
- 'type' => TType::STRING,
- ),
- 5 => array(
- 'var' => 'status',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\ComponentStatus',
- ),
- 6 => array(
- 'var' => 'description',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['nodeId'])) {
- $this->nodeId = $vals['nodeId'];
- }
- if (isset($vals['name'])) {
- $this->name = $vals['name'];
- }
- if (isset($vals['applicationId'])) {
- $this->applicationId = $vals['applicationId'];
- }
- if (isset($vals['applicationName'])) {
- $this->applicationName = $vals['applicationName'];
- }
- if (isset($vals['status'])) {
- $this->status = $vals['status'];
- }
- if (isset($vals['description'])) {
- $this->description = $vals['description'];
- }
- }
- }
-
- public function getName() {
- return 'NodeModel';
- }
-
- 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::STRING) {
- $xfer += $input->readString($this->nodeId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->name);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->applicationId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->applicationName);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 5:
- if ($ftype == TType::STRUCT) {
- $this->status = new \Airavata\Model\ComponentStatus();
- $xfer += $this->status->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 6:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->description);
- } 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('NodeModel');
- if ($this->nodeId !== null) {
- $xfer += $output->writeFieldBegin('nodeId', TType::STRING, 1);
- $xfer += $output->writeString($this->nodeId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->name !== null) {
- $xfer += $output->writeFieldBegin('name', TType::STRING, 2);
- $xfer += $output->writeString($this->name);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->applicationId !== null) {
- $xfer += $output->writeFieldBegin('applicationId', TType::STRING, 3);
- $xfer += $output->writeString($this->applicationId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->applicationName !== null) {
- $xfer += $output->writeFieldBegin('applicationName', TType::STRING, 4);
- $xfer += $output->writeString($this->applicationName);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->status !== null) {
- if (!is_object($this->status)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('status', TType::STRUCT, 5);
- $xfer += $this->status->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->description !== null) {
- $xfer += $output->writeFieldBegin('description', TType::STRING, 6);
- $xfer += $output->writeString($this->description);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
diff --git a/app/libraries/Airavata/Model/User/Types.php b/app/libraries/Airavata/Model/User/Types.php
index 493b615..3629b51 100644
--- a/app/libraries/Airavata/Model/User/Types.php
+++ b/app/libraries/Airavata/Model/User/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\User;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -396,6 +396,638 @@
}
/**
+ * A structure holding the cutomized admin dashboard information.
+ *
+ *
+ */
+class CustomDashboard {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $airavataInternalUserId = "DO_NOT_SET_AT_CLIENTS";
+ /**
+ * @var string
+ */
+ public $experimentId = null;
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var string
+ */
+ public $project = null;
+ /**
+ * @var string
+ */
+ public $owner = null;
+ /**
+ * @var string
+ */
+ public $application = null;
+ /**
+ * @var string
+ */
+ public $computeResource = null;
+ /**
+ * @var string
+ */
+ public $jobName = null;
+ /**
+ * @var string
+ */
+ public $jobId = null;
+ /**
+ * @var string
+ */
+ public $jobStatus = null;
+ /**
+ * @var string
+ */
+ public $jobCreationTime = null;
+ /**
+ * @var string
+ */
+ public $notificationsTo = null;
+ /**
+ * @var string
+ */
+ public $workingDir = null;
+ /**
+ * @var string
+ */
+ public $jobDescription = null;
+ /**
+ * @var string
+ */
+ public $creationTime = null;
+ /**
+ * @var string
+ */
+ public $lastModifiedTime = null;
+ /**
+ * @var string
+ */
+ public $wallTime = null;
+ /**
+ * @var string
+ */
+ public $cpuCount = null;
+ /**
+ * @var string
+ */
+ public $nodeCount = null;
+ /**
+ * @var string
+ */
+ public $queue = null;
+ /**
+ * @var string
+ */
+ public $inputs = null;
+ /**
+ * @var string
+ */
+ public $outputs = null;
+ /**
+ * @var string
+ */
+ public $storageDir = null;
+ /**
+ * @var string
+ */
+ public $errors = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'airavataInternalUserId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'experimentId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'project',
+ 'type' => TType::STRING,
+ ),
+ 6 => array(
+ 'var' => 'owner',
+ 'type' => TType::STRING,
+ ),
+ 7 => array(
+ 'var' => 'application',
+ 'type' => TType::STRING,
+ ),
+ 8 => array(
+ 'var' => 'computeResource',
+ 'type' => TType::STRING,
+ ),
+ 9 => array(
+ 'var' => 'jobName',
+ 'type' => TType::STRING,
+ ),
+ 10 => array(
+ 'var' => 'jobId',
+ 'type' => TType::STRING,
+ ),
+ 11 => array(
+ 'var' => 'jobStatus',
+ 'type' => TType::STRING,
+ ),
+ 12 => array(
+ 'var' => 'jobCreationTime',
+ 'type' => TType::STRING,
+ ),
+ 13 => array(
+ 'var' => 'notificationsTo',
+ 'type' => TType::STRING,
+ ),
+ 14 => array(
+ 'var' => 'workingDir',
+ 'type' => TType::STRING,
+ ),
+ 15 => array(
+ 'var' => 'jobDescription',
+ 'type' => TType::STRING,
+ ),
+ 16 => array(
+ 'var' => 'creationTime',
+ 'type' => TType::STRING,
+ ),
+ 17 => array(
+ 'var' => 'lastModifiedTime',
+ 'type' => TType::STRING,
+ ),
+ 18 => array(
+ 'var' => 'wallTime',
+ 'type' => TType::STRING,
+ ),
+ 19 => array(
+ 'var' => 'cpuCount',
+ 'type' => TType::STRING,
+ ),
+ 20 => array(
+ 'var' => 'nodeCount',
+ 'type' => TType::STRING,
+ ),
+ 21 => array(
+ 'var' => 'queue',
+ 'type' => TType::STRING,
+ ),
+ 22 => array(
+ 'var' => 'inputs',
+ 'type' => TType::STRING,
+ ),
+ 23 => array(
+ 'var' => 'outputs',
+ 'type' => TType::STRING,
+ ),
+ 24 => array(
+ 'var' => 'storageDir',
+ 'type' => TType::STRING,
+ ),
+ 25 => array(
+ 'var' => 'errors',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['airavataInternalUserId'])) {
+ $this->airavataInternalUserId = $vals['airavataInternalUserId'];
+ }
+ if (isset($vals['experimentId'])) {
+ $this->experimentId = $vals['experimentId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['project'])) {
+ $this->project = $vals['project'];
+ }
+ if (isset($vals['owner'])) {
+ $this->owner = $vals['owner'];
+ }
+ if (isset($vals['application'])) {
+ $this->application = $vals['application'];
+ }
+ if (isset($vals['computeResource'])) {
+ $this->computeResource = $vals['computeResource'];
+ }
+ if (isset($vals['jobName'])) {
+ $this->jobName = $vals['jobName'];
+ }
+ if (isset($vals['jobId'])) {
+ $this->jobId = $vals['jobId'];
+ }
+ if (isset($vals['jobStatus'])) {
+ $this->jobStatus = $vals['jobStatus'];
+ }
+ if (isset($vals['jobCreationTime'])) {
+ $this->jobCreationTime = $vals['jobCreationTime'];
+ }
+ if (isset($vals['notificationsTo'])) {
+ $this->notificationsTo = $vals['notificationsTo'];
+ }
+ if (isset($vals['workingDir'])) {
+ $this->workingDir = $vals['workingDir'];
+ }
+ if (isset($vals['jobDescription'])) {
+ $this->jobDescription = $vals['jobDescription'];
+ }
+ if (isset($vals['creationTime'])) {
+ $this->creationTime = $vals['creationTime'];
+ }
+ if (isset($vals['lastModifiedTime'])) {
+ $this->lastModifiedTime = $vals['lastModifiedTime'];
+ }
+ if (isset($vals['wallTime'])) {
+ $this->wallTime = $vals['wallTime'];
+ }
+ if (isset($vals['cpuCount'])) {
+ $this->cpuCount = $vals['cpuCount'];
+ }
+ if (isset($vals['nodeCount'])) {
+ $this->nodeCount = $vals['nodeCount'];
+ }
+ if (isset($vals['queue'])) {
+ $this->queue = $vals['queue'];
+ }
+ if (isset($vals['inputs'])) {
+ $this->inputs = $vals['inputs'];
+ }
+ if (isset($vals['outputs'])) {
+ $this->outputs = $vals['outputs'];
+ }
+ if (isset($vals['storageDir'])) {
+ $this->storageDir = $vals['storageDir'];
+ }
+ if (isset($vals['errors'])) {
+ $this->errors = $vals['errors'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'CustomDashboard';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->airavataInternalUserId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->experimentId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->project);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->owner);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->application);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->computeResource);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 9:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->jobName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 10:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->jobId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 11:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->jobStatus);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 12:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->jobCreationTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 13:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->notificationsTo);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 14:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->workingDir);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 15:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->jobDescription);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 16:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->creationTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 17:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->lastModifiedTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 18:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->wallTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 19:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->cpuCount);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 20:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->nodeCount);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 21:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->queue);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 22:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->inputs);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 23:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->outputs);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 24:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->storageDir);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 25:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->errors);
+ } 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('CustomDashboard');
+ if ($this->airavataInternalUserId !== null) {
+ $xfer += $output->writeFieldBegin('airavataInternalUserId', TType::STRING, 1);
+ $xfer += $output->writeString($this->airavataInternalUserId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->experimentId !== null) {
+ $xfer += $output->writeFieldBegin('experimentId', TType::STRING, 2);
+ $xfer += $output->writeString($this->experimentId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 3);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 4);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->project !== null) {
+ $xfer += $output->writeFieldBegin('project', TType::STRING, 5);
+ $xfer += $output->writeString($this->project);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->owner !== null) {
+ $xfer += $output->writeFieldBegin('owner', TType::STRING, 6);
+ $xfer += $output->writeString($this->owner);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->application !== null) {
+ $xfer += $output->writeFieldBegin('application', TType::STRING, 7);
+ $xfer += $output->writeString($this->application);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->computeResource !== null) {
+ $xfer += $output->writeFieldBegin('computeResource', TType::STRING, 8);
+ $xfer += $output->writeString($this->computeResource);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->jobName !== null) {
+ $xfer += $output->writeFieldBegin('jobName', TType::STRING, 9);
+ $xfer += $output->writeString($this->jobName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->jobId !== null) {
+ $xfer += $output->writeFieldBegin('jobId', TType::STRING, 10);
+ $xfer += $output->writeString($this->jobId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->jobStatus !== null) {
+ $xfer += $output->writeFieldBegin('jobStatus', TType::STRING, 11);
+ $xfer += $output->writeString($this->jobStatus);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->jobCreationTime !== null) {
+ $xfer += $output->writeFieldBegin('jobCreationTime', TType::STRING, 12);
+ $xfer += $output->writeString($this->jobCreationTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->notificationsTo !== null) {
+ $xfer += $output->writeFieldBegin('notificationsTo', TType::STRING, 13);
+ $xfer += $output->writeString($this->notificationsTo);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->workingDir !== null) {
+ $xfer += $output->writeFieldBegin('workingDir', TType::STRING, 14);
+ $xfer += $output->writeString($this->workingDir);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->jobDescription !== null) {
+ $xfer += $output->writeFieldBegin('jobDescription', TType::STRING, 15);
+ $xfer += $output->writeString($this->jobDescription);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->creationTime !== null) {
+ $xfer += $output->writeFieldBegin('creationTime', TType::STRING, 16);
+ $xfer += $output->writeString($this->creationTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->lastModifiedTime !== null) {
+ $xfer += $output->writeFieldBegin('lastModifiedTime', TType::STRING, 17);
+ $xfer += $output->writeString($this->lastModifiedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->wallTime !== null) {
+ $xfer += $output->writeFieldBegin('wallTime', TType::STRING, 18);
+ $xfer += $output->writeString($this->wallTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->cpuCount !== null) {
+ $xfer += $output->writeFieldBegin('cpuCount', TType::STRING, 19);
+ $xfer += $output->writeString($this->cpuCount);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->nodeCount !== null) {
+ $xfer += $output->writeFieldBegin('nodeCount', TType::STRING, 20);
+ $xfer += $output->writeString($this->nodeCount);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->queue !== null) {
+ $xfer += $output->writeFieldBegin('queue', TType::STRING, 21);
+ $xfer += $output->writeString($this->queue);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->inputs !== null) {
+ $xfer += $output->writeFieldBegin('inputs', TType::STRING, 22);
+ $xfer += $output->writeString($this->inputs);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->outputs !== null) {
+ $xfer += $output->writeFieldBegin('outputs', TType::STRING, 23);
+ $xfer += $output->writeString($this->outputs);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->storageDir !== null) {
+ $xfer += $output->writeFieldBegin('storageDir', TType::STRING, 24);
+ $xfer += $output->writeString($this->storageDir);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->errors !== null) {
+ $xfer += $output->writeFieldBegin('errors', TType::STRING, 25);
+ $xfer += $output->writeString($this->errors);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
* * A structure holding the user profile and its child models.
* *
* * Notes:
@@ -556,6 +1188,10 @@
* @var \Airavata\Model\User\NSFDemographics
*/
public $nsfDemographics = null;
+ /**
+ * @var \Airavata\Model\User\CustomDashboard
+ */
+ public $customDashboard = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -677,6 +1313,11 @@
'type' => TType::STRUCT,
'class' => '\Airavata\Model\User\NSFDemographics',
),
+ 26 => array(
+ 'var' => 'customDashboard',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\User\CustomDashboard',
+ ),
);
}
if (is_array($vals)) {
@@ -755,6 +1396,9 @@
if (isset($vals['nsfDemographics'])) {
$this->nsfDemographics = $vals['nsfDemographics'];
}
+ if (isset($vals['customDashboard'])) {
+ $this->customDashboard = $vals['customDashboard'];
+ }
}
}
@@ -993,6 +1637,14 @@
$xfer += $input->skip($ftype);
}
break;
+ case 26:
+ if ($ftype == TType::STRUCT) {
+ $this->customDashboard = new \Airavata\Model\User\CustomDashboard();
+ $xfer += $this->customDashboard->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -1182,6 +1834,14 @@
$xfer += $this->nsfDemographics->write($output);
$xfer += $output->writeFieldEnd();
}
+ if ($this->customDashboard !== null) {
+ if (!is_object($this->customDashboard)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('customDashboard', TType::STRUCT, 26);
+ $xfer += $this->customDashboard->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
diff --git a/app/libraries/Airavata/Model/Workspace/Types.php b/app/libraries/Airavata/Model/Workspace/Types.php
index 850778a..8a2f3cb 100644
--- a/app/libraries/Airavata/Model/Workspace/Types.php
+++ b/app/libraries/Airavata/Model/Workspace/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Workspace;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/Error/Types.php b/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/Error/Types.php
index 28fa514..fb73d5a 100644
--- a/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/Error/Types.php
+++ b/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/Error/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Service\Iam\Admin\Services\CPI\Error;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/IamAdminServices.php b/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/IamAdminServices.php
index 0393df3..1ba47d3 100644
--- a/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/IamAdminServices.php
+++ b/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/IamAdminServices.php
@@ -1,7 +1,7 @@
<?php
namespace Airavata\Service\Iam\Admin\Services\CPI;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -113,6 +113,7 @@
public function getUsersWithRole(\Airavata\Model\Security\AuthzToken $authzToken, $roleName);
}
+
class IamAdminServicesClient implements \Airavata\Service\Iam\Admin\Services\CPI\IamAdminServicesIf {
protected $input_ = null;
protected $output_ = null;
@@ -768,6 +769,7 @@
}
+
// HELPER FUNCTIONS AND STRUCTURES
class IamAdminServices_getAPIVersion_args {
diff --git a/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/Types.php b/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/Types.php
index fb21133..54391ec 100644
--- a/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/Types.php
+++ b/app/libraries/Airavata/Service/Iam/Admin/Services/CPI/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Service\Iam\Admin\Services\CPI;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Service/Profile/Groupmanager/CPI/Error/Types.php b/app/libraries/Airavata/Service/Profile/Groupmanager/CPI/Error/Types.php
new file mode 100644
index 0000000..b8f7146
--- /dev/null
+++ b/app/libraries/Airavata/Service/Profile/Groupmanager/CPI/Error/Types.php
@@ -0,0 +1,95 @@
+<?php
+namespace Airavata\Service\Profile\Groupmanager\CPI\Error;
+
+/**
+ * Autogenerated by Thrift Compiler (0.10.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+use Thrift\Base\TBase;
+use Thrift\Type\TType;
+use Thrift\Type\TMessageType;
+use Thrift\Exception\TException;
+use Thrift\Exception\TProtocolException;
+use Thrift\Protocol\TProtocol;
+use Thrift\Protocol\TBinaryProtocolAccelerated;
+use Thrift\Exception\TApplicationException;
+
+
+class GroupManagerServiceException extends TException {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $message = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'message',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['message'])) {
+ $this->message = $vals['message'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerServiceException';
+ }
+
+ 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::STRING) {
+ $xfer += $input->readString($this->message);
+ } 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('GroupManagerServiceException');
+ if ($this->message !== null) {
+ $xfer += $output->writeFieldBegin('message', TType::STRING, 1);
+ $xfer += $output->writeString($this->message);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+
diff --git a/app/libraries/Airavata/Service/Profile/Groupmanager/CPI/GroupManagerService.php b/app/libraries/Airavata/Service/Profile/Groupmanager/CPI/GroupManagerService.php
new file mode 100644
index 0000000..6e69b88
--- /dev/null
+++ b/app/libraries/Airavata/Service/Profile/Groupmanager/CPI/GroupManagerService.php
@@ -0,0 +1,4211 @@
+<?php
+namespace Airavata\Service\Profile\Groupmanager\CPI;
+/**
+ * Autogenerated by Thrift Compiler (0.10.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+use Thrift\Base\TBase;
+use Thrift\Type\TType;
+use Thrift\Type\TMessageType;
+use Thrift\Exception\TException;
+use Thrift\Exception\TProtocolException;
+use Thrift\Protocol\TProtocol;
+use Thrift\Protocol\TBinaryProtocolAccelerated;
+use Thrift\Exception\TApplicationException;
+
+
+interface GroupManagerServiceIf {
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param \Airavata\Model\Group\GroupModel $groupModel
+ * @return string
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function createGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param \Airavata\Model\Group\GroupModel $groupModel
+ * @return bool
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function updateGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupId
+ * @param string $ownerId
+ * @return bool
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupId
+ * @return \Airavata\Model\Group\GroupModel
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @return \Airavata\Model\Group\GroupModel[]
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getGroups(\Airavata\Model\Security\AuthzToken $authzToken);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $userName
+ * @return \Airavata\Model\Group\GroupModel[]
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string[] $userIds
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function addUsersToGroup(\Airavata\Model\Security\AuthzToken $authzToken, array $userIds, $groupId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string[] $userIds
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function removeUsersFromGroup(\Airavata\Model\Security\AuthzToken $authzToken, array $userIds, $groupId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupId
+ * @param string $newOwnerId
+ * @return bool
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function transferGroupOwnership(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $newOwnerId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupId
+ * @param string[] $adminIds
+ * @return bool
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function addGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupId
+ * @param string[] $adminIds
+ * @return bool
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function removeGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupId
+ * @param string $adminId
+ * @return bool
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function hasAdminAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $adminId);
+ /**
+ * @param \Airavata\Model\Security\AuthzToken $authzToken
+ * @param string $groupId
+ * @param string $ownerId
+ * @return bool
+ * @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ * @throws \Airavata\API\Error\AuthorizationException
+ */
+ public function hasOwnerAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId);
+}
+
+
+class GroupManagerServiceClient implements \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerServiceIf {
+ protected $input_ = null;
+ protected $output_ = null;
+
+ protected $seqid_ = 0;
+
+ public function __construct($input, $output=null) {
+ $this->input_ = $input;
+ $this->output_ = $output ? $output : $input;
+ }
+
+ public function createGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
+ {
+ $this->send_createGroup($authzToken, $groupModel);
+ return $this->recv_createGroup();
+ }
+
+ public function send_createGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_createGroup_args();
+ $args->authzToken = $authzToken;
+ $args->groupModel = $groupModel;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_createGroup_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\Service\Profile\Groupmanager\CPI\GroupManagerService_createGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("createGroup failed: unknown result");
+ }
+
+ public function updateGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
+ {
+ $this->send_updateGroup($authzToken, $groupModel);
+ return $this->recv_updateGroup();
+ }
+
+ public function send_updateGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_updateGroup_args();
+ $args->authzToken = $authzToken;
+ $args->groupModel = $groupModel;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updateGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updateGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updateGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_updateGroup_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\Service\Profile\Groupmanager\CPI\GroupManagerService_updateGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("updateGroup failed: unknown result");
+ }
+
+ public function deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
+ {
+ $this->send_deleteGroup($authzToken, $groupId, $ownerId);
+ return $this->recv_deleteGroup();
+ }
+
+ public function send_deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_deleteGroup_args();
+ $args->authzToken = $authzToken;
+ $args->groupId = $groupId;
+ $args->ownerId = $ownerId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deleteGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deleteGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deleteGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_deleteGroup_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\Service\Profile\Groupmanager\CPI\GroupManagerService_deleteGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("deleteGroup failed: unknown result");
+ }
+
+ public function getGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId)
+ {
+ $this->send_getGroup($authzToken, $groupId);
+ return $this->recv_getGroup();
+ }
+
+ public function send_getGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_getGroup_args();
+ $args->authzToken = $authzToken;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_getGroup_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\Service\Profile\Groupmanager\CPI\GroupManagerService_getGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("getGroup failed: unknown result");
+ }
+
+ public function getGroups(\Airavata\Model\Security\AuthzToken $authzToken)
+ {
+ $this->send_getGroups($authzToken);
+ return $this->recv_getGroups();
+ }
+
+ public function send_getGroups(\Airavata\Model\Security\AuthzToken $authzToken)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_getGroups_args();
+ $args->authzToken = $authzToken;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroups()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_getGroups_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\Service\Profile\Groupmanager\CPI\GroupManagerService_getGroups_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("getGroups failed: unknown result");
+ }
+
+ public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName)
+ {
+ $this->send_getAllGroupsUserBelongs($authzToken, $userName);
+ return $this->recv_getAllGroupsUserBelongs();
+ }
+
+ public function send_getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_getAllGroupsUserBelongs_args();
+ $args->authzToken = $authzToken;
+ $args->userName = $userName;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getAllGroupsUserBelongs', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getAllGroupsUserBelongs', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getAllGroupsUserBelongs()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_getAllGroupsUserBelongs_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\Service\Profile\Groupmanager\CPI\GroupManagerService_getAllGroupsUserBelongs_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("getAllGroupsUserBelongs failed: unknown result");
+ }
+
+ public function addUsersToGroup(\Airavata\Model\Security\AuthzToken $authzToken, array $userIds, $groupId)
+ {
+ $this->send_addUsersToGroup($authzToken, $userIds, $groupId);
+ return $this->recv_addUsersToGroup();
+ }
+
+ public function send_addUsersToGroup(\Airavata\Model\Security\AuthzToken $authzToken, array $userIds, $groupId)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_addUsersToGroup_args();
+ $args->authzToken = $authzToken;
+ $args->userIds = $userIds;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'addUsersToGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('addUsersToGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_addUsersToGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_addUsersToGroup_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\Service\Profile\Groupmanager\CPI\GroupManagerService_addUsersToGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("addUsersToGroup failed: unknown result");
+ }
+
+ public function removeUsersFromGroup(\Airavata\Model\Security\AuthzToken $authzToken, array $userIds, $groupId)
+ {
+ $this->send_removeUsersFromGroup($authzToken, $userIds, $groupId);
+ return $this->recv_removeUsersFromGroup();
+ }
+
+ public function send_removeUsersFromGroup(\Airavata\Model\Security\AuthzToken $authzToken, array $userIds, $groupId)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_removeUsersFromGroup_args();
+ $args->authzToken = $authzToken;
+ $args->userIds = $userIds;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'removeUsersFromGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('removeUsersFromGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_removeUsersFromGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_removeUsersFromGroup_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\Service\Profile\Groupmanager\CPI\GroupManagerService_removeUsersFromGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("removeUsersFromGroup failed: unknown result");
+ }
+
+ public function transferGroupOwnership(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $newOwnerId)
+ {
+ $this->send_transferGroupOwnership($authzToken, $groupId, $newOwnerId);
+ return $this->recv_transferGroupOwnership();
+ }
+
+ public function send_transferGroupOwnership(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $newOwnerId)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_transferGroupOwnership_args();
+ $args->authzToken = $authzToken;
+ $args->groupId = $groupId;
+ $args->newOwnerId = $newOwnerId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'transferGroupOwnership', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('transferGroupOwnership', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_transferGroupOwnership()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_transferGroupOwnership_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\Service\Profile\Groupmanager\CPI\GroupManagerService_transferGroupOwnership_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("transferGroupOwnership failed: unknown result");
+ }
+
+ public function addGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds)
+ {
+ $this->send_addGroupAdmins($authzToken, $groupId, $adminIds);
+ return $this->recv_addGroupAdmins();
+ }
+
+ public function send_addGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_addGroupAdmins_args();
+ $args->authzToken = $authzToken;
+ $args->groupId = $groupId;
+ $args->adminIds = $adminIds;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'addGroupAdmins', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('addGroupAdmins', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_addGroupAdmins()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_addGroupAdmins_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\Service\Profile\Groupmanager\CPI\GroupManagerService_addGroupAdmins_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("addGroupAdmins failed: unknown result");
+ }
+
+ public function removeGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds)
+ {
+ $this->send_removeGroupAdmins($authzToken, $groupId, $adminIds);
+ return $this->recv_removeGroupAdmins();
+ }
+
+ public function send_removeGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_removeGroupAdmins_args();
+ $args->authzToken = $authzToken;
+ $args->groupId = $groupId;
+ $args->adminIds = $adminIds;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'removeGroupAdmins', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('removeGroupAdmins', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_removeGroupAdmins()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_removeGroupAdmins_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\Service\Profile\Groupmanager\CPI\GroupManagerService_removeGroupAdmins_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("removeGroupAdmins failed: unknown result");
+ }
+
+ public function hasAdminAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $adminId)
+ {
+ $this->send_hasAdminAccess($authzToken, $groupId, $adminId);
+ return $this->recv_hasAdminAccess();
+ }
+
+ public function send_hasAdminAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $adminId)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_hasAdminAccess_args();
+ $args->authzToken = $authzToken;
+ $args->groupId = $groupId;
+ $args->adminId = $adminId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'hasAdminAccess', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('hasAdminAccess', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_hasAdminAccess()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_hasAdminAccess_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\Service\Profile\Groupmanager\CPI\GroupManagerService_hasAdminAccess_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("hasAdminAccess failed: unknown result");
+ }
+
+ public function hasOwnerAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
+ {
+ $this->send_hasOwnerAccess($authzToken, $groupId, $ownerId);
+ return $this->recv_hasOwnerAccess();
+ }
+
+ public function send_hasOwnerAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
+ {
+ $args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_hasOwnerAccess_args();
+ $args->authzToken = $authzToken;
+ $args->groupId = $groupId;
+ $args->ownerId = $ownerId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'hasOwnerAccess', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('hasOwnerAccess', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_hasOwnerAccess()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_hasOwnerAccess_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\Service\Profile\Groupmanager\CPI\GroupManagerService_hasOwnerAccess_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->gse !== null) {
+ throw $result->gse;
+ }
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("hasOwnerAccess failed: unknown result");
+ }
+
+}
+
+
+// HELPER FUNCTIONS AND STRUCTURES
+
+class GroupManagerService_createGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var \Airavata\Model\Group\GroupModel
+ */
+ public $groupModel = 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' => 'groupModel',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Group\GroupModel',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupModel'])) {
+ $this->groupModel = $vals['groupModel'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_createGroup_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::STRUCT) {
+ $this->groupModel = new \Airavata\Model\Group\GroupModel();
+ $xfer += $this->groupModel->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('GroupManagerService_createGroup_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->groupModel !== null) {
+ if (!is_object($this->groupModel)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('groupModel', TType::STRUCT, 2);
+ $xfer += $this->groupModel->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_createGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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::STRING,
+ ),
+ 1 => array(
+ 'var' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_createGroup_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 0:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_createGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_updateGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var \Airavata\Model\Group\GroupModel
+ */
+ public $groupModel = 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' => 'groupModel',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Group\GroupModel',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupModel'])) {
+ $this->groupModel = $vals['groupModel'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_updateGroup_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::STRUCT) {
+ $this->groupModel = new \Airavata\Model\Group\GroupModel();
+ $xfer += $this->groupModel->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('GroupManagerService_updateGroup_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->groupModel !== null) {
+ if (!is_object($this->groupModel)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('groupModel', TType::STRUCT, 2);
+ $xfer += $this->groupModel->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_updateGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_updateGroup_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_updateGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_deleteGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $ownerId = 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' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'ownerId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['ownerId'])) {
+ $this->ownerId = $vals['ownerId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_deleteGroup_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->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->ownerId);
+ } 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('GroupManagerService_deleteGroup_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->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ownerId !== null) {
+ $xfer += $output->writeFieldBegin('ownerId', TType::STRING, 3);
+ $xfer += $output->writeString($this->ownerId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_deleteGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_deleteGroup_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_deleteGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_getGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $groupId = 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' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_getGroup_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->groupId);
+ } 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('GroupManagerService_getGroup_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->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_getGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Group\GroupModel
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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::STRUCT,
+ 'class' => '\Airavata\Model\Group\GroupModel',
+ ),
+ 1 => array(
+ 'var' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_getGroup_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 0:
+ if ($ftype == TType::STRUCT) {
+ $this->success = new \Airavata\Model\Group\GroupModel();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_getGroup_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_getGroups_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = 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',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_getGroups_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;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('GroupManagerService_getGroups_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();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_getGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Group\GroupModel[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Group\GroupModel',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_getGroups_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size0 = 0;
+ $_etype3 = 0;
+ $xfer += $input->readListBegin($_etype3, $_size0);
+ for ($_i4 = 0; $_i4 < $_size0; ++$_i4)
+ {
+ $elem5 = null;
+ $elem5 = new \Airavata\Model\Group\GroupModel();
+ $xfer += $elem5->read($input);
+ $this->success []= $elem5;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_getGroups_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 $iter6)
+ {
+ $xfer += $iter6->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_getAllGroupsUserBelongs_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $userName = 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' => 'userName',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['userName'])) {
+ $this->userName = $vals['userName'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_getAllGroupsUserBelongs_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->userName);
+ } 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('GroupManagerService_getAllGroupsUserBelongs_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->userName !== null) {
+ $xfer += $output->writeFieldBegin('userName', TType::STRING, 2);
+ $xfer += $output->writeString($this->userName);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_getAllGroupsUserBelongs_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Group\GroupModel[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Group\GroupModel',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_getAllGroupsUserBelongs_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 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size7 = 0;
+ $_etype10 = 0;
+ $xfer += $input->readListBegin($_etype10, $_size7);
+ for ($_i11 = 0; $_i11 < $_size7; ++$_i11)
+ {
+ $elem12 = null;
+ $elem12 = new \Airavata\Model\Group\GroupModel();
+ $xfer += $elem12->read($input);
+ $this->success []= $elem12;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_getAllGroupsUserBelongs_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 $iter13)
+ {
+ $xfer += $iter13->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_addUsersToGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string[]
+ */
+ public $userIds = null;
+ /**
+ * @var string
+ */
+ public $groupId = 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' => 'userIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['userIds'])) {
+ $this->userIds = $vals['userIds'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_addUsersToGroup_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::LST) {
+ $this->userIds = array();
+ $_size14 = 0;
+ $_etype17 = 0;
+ $xfer += $input->readListBegin($_etype17, $_size14);
+ for ($_i18 = 0; $_i18 < $_size14; ++$_i18)
+ {
+ $elem19 = null;
+ $xfer += $input->readString($elem19);
+ $this->userIds []= $elem19;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('GroupManagerService_addUsersToGroup_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->userIds !== null) {
+ if (!is_array($this->userIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('userIds', TType::LST, 2);
+ {
+ $output->writeListBegin(TType::STRING, count($this->userIds));
+ {
+ foreach ($this->userIds as $iter20)
+ {
+ $xfer += $output->writeString($iter20);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_addUsersToGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_addUsersToGroup_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_addUsersToGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_removeUsersFromGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string[]
+ */
+ public $userIds = null;
+ /**
+ * @var string
+ */
+ public $groupId = 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' => 'userIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['userIds'])) {
+ $this->userIds = $vals['userIds'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_removeUsersFromGroup_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::LST) {
+ $this->userIds = array();
+ $_size21 = 0;
+ $_etype24 = 0;
+ $xfer += $input->readListBegin($_etype24, $_size21);
+ for ($_i25 = 0; $_i25 < $_size21; ++$_i25)
+ {
+ $elem26 = null;
+ $xfer += $input->readString($elem26);
+ $this->userIds []= $elem26;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('GroupManagerService_removeUsersFromGroup_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->userIds !== null) {
+ if (!is_array($this->userIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('userIds', TType::LST, 2);
+ {
+ $output->writeListBegin(TType::STRING, count($this->userIds));
+ {
+ foreach ($this->userIds as $iter27)
+ {
+ $xfer += $output->writeString($iter27);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_removeUsersFromGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_removeUsersFromGroup_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_removeUsersFromGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_transferGroupOwnership_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $newOwnerId = 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' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'newOwnerId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['newOwnerId'])) {
+ $this->newOwnerId = $vals['newOwnerId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_transferGroupOwnership_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->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->newOwnerId);
+ } 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('GroupManagerService_transferGroupOwnership_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->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->newOwnerId !== null) {
+ $xfer += $output->writeFieldBegin('newOwnerId', TType::STRING, 3);
+ $xfer += $output->writeString($this->newOwnerId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_transferGroupOwnership_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_transferGroupOwnership_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_transferGroupOwnership_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_addGroupAdmins_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string[]
+ */
+ public $adminIds = 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' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'adminIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['adminIds'])) {
+ $this->adminIds = $vals['adminIds'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_addGroupAdmins_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->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->adminIds = array();
+ $_size28 = 0;
+ $_etype31 = 0;
+ $xfer += $input->readListBegin($_etype31, $_size28);
+ for ($_i32 = 0; $_i32 < $_size28; ++$_i32)
+ {
+ $elem33 = null;
+ $xfer += $input->readString($elem33);
+ $this->adminIds []= $elem33;
+ }
+ $xfer += $input->readListEnd();
+ } 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('GroupManagerService_addGroupAdmins_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->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminIds !== null) {
+ if (!is_array($this->adminIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('adminIds', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->adminIds));
+ {
+ foreach ($this->adminIds as $iter34)
+ {
+ $xfer += $output->writeString($iter34);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_addGroupAdmins_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_addGroupAdmins_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_addGroupAdmins_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_removeGroupAdmins_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string[]
+ */
+ public $adminIds = 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' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'adminIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['adminIds'])) {
+ $this->adminIds = $vals['adminIds'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_removeGroupAdmins_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->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->adminIds = array();
+ $_size35 = 0;
+ $_etype38 = 0;
+ $xfer += $input->readListBegin($_etype38, $_size35);
+ for ($_i39 = 0; $_i39 < $_size35; ++$_i39)
+ {
+ $elem40 = null;
+ $xfer += $input->readString($elem40);
+ $this->adminIds []= $elem40;
+ }
+ $xfer += $input->readListEnd();
+ } 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('GroupManagerService_removeGroupAdmins_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->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminIds !== null) {
+ if (!is_array($this->adminIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('adminIds', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->adminIds));
+ {
+ foreach ($this->adminIds as $iter41)
+ {
+ $xfer += $output->writeString($iter41);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_removeGroupAdmins_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_removeGroupAdmins_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_removeGroupAdmins_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_hasAdminAccess_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $adminId = 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' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'adminId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['adminId'])) {
+ $this->adminId = $vals['adminId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_hasAdminAccess_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->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->adminId);
+ } 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('GroupManagerService_hasAdminAccess_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->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminId !== null) {
+ $xfer += $output->writeFieldBegin('adminId', TType::STRING, 3);
+ $xfer += $output->writeString($this->adminId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_hasAdminAccess_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_hasAdminAccess_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_hasAdminAccess_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_hasOwnerAccess_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $ownerId = 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' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'ownerId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['ownerId'])) {
+ $this->ownerId = $vals['ownerId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_hasOwnerAccess_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->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->ownerId);
+ } 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('GroupManagerService_hasOwnerAccess_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->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ownerId !== null) {
+ $xfer += $output->writeFieldBegin('ownerId', TType::STRING, 3);
+ $xfer += $output->writeString($this->ownerId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupManagerService_hasOwnerAccess_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
+ */
+ public $gse = 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' => 'gse',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
+ ),
+ 2 => 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['gse'])) {
+ $this->gse = $vals['gse'];
+ }
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupManagerService_hasOwnerAccess_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 0:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
+ $xfer += $this->gse->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ 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('GroupManagerService_hasOwnerAccess_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->gse !== null) {
+ $xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
+ $xfer += $this->gse->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+
diff --git a/app/libraries/Airavata/Service/Profile/Groupmanager/CPI/Types.php b/app/libraries/Airavata/Service/Profile/Groupmanager/CPI/Types.php
new file mode 100644
index 0000000..b49f4a3
--- /dev/null
+++ b/app/libraries/Airavata/Service/Profile/Groupmanager/CPI/Types.php
@@ -0,0 +1,33 @@
+<?php
+namespace Airavata\Service\Profile\Groupmanager\CPI;
+
+/**
+ * Autogenerated by Thrift Compiler (0.10.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+use Thrift\Base\TBase;
+use Thrift\Type\TType;
+use Thrift\Type\TMessageType;
+use Thrift\Exception\TException;
+use Thrift\Exception\TProtocolException;
+use Thrift\Protocol\TProtocol;
+use Thrift\Protocol\TBinaryProtocolAccelerated;
+use Thrift\Exception\TApplicationException;
+
+
+final class Constant extends \Thrift\Type\TConstant {
+ static protected $GROUP_MANAGER_CPI_VERSION;
+ static protected $GROUP_MANAGER_CPI_NAME;
+
+ static protected function init_GROUP_MANAGER_CPI_VERSION() {
+ return "0.17";
+ }
+
+ static protected function init_GROUP_MANAGER_CPI_NAME() {
+ return "GroupManagerService";
+ }
+}
+
+
diff --git a/app/libraries/Airavata/Service/Profile/Tenant/CPI/Error/Types.php b/app/libraries/Airavata/Service/Profile/Tenant/CPI/Error/Types.php
index 796dbf6..90afbf2 100644
--- a/app/libraries/Airavata/Service/Profile/Tenant/CPI/Error/Types.php
+++ b/app/libraries/Airavata/Service/Profile/Tenant/CPI/Error/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Service\Profile\Tenant\CPI\Error;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Service/Profile/Tenant/CPI/TenantProfileService.php b/app/libraries/Airavata/Service/Profile/Tenant/CPI/TenantProfileService.php
index a1211be..633771e 100644
--- a/app/libraries/Airavata/Service/Profile/Tenant/CPI/TenantProfileService.php
+++ b/app/libraries/Airavata/Service/Profile/Tenant/CPI/TenantProfileService.php
@@ -1,7 +1,7 @@
<?php
namespace Airavata\Service\Profile\Tenant\CPI;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -84,6 +84,7 @@
public function getAllGatewaysForUser(\Airavata\Model\Security\AuthzToken $authzToken, $requesterUsername);
}
+
class TenantProfileServiceClient implements \Airavata\Service\Profile\Tenant\CPI\TenantProfileServiceIf {
protected $input_ = null;
protected $output_ = null;
@@ -560,6 +561,7 @@
}
+
// HELPER FUNCTIONS AND STRUCTURES
class TenantProfileService_getAPIVersion_args {
diff --git a/app/libraries/Airavata/Service/Profile/Tenant/CPI/Types.php b/app/libraries/Airavata/Service/Profile/Tenant/CPI/Types.php
index 92038a2..41891f4 100644
--- a/app/libraries/Airavata/Service/Profile/Tenant/CPI/Types.php
+++ b/app/libraries/Airavata/Service/Profile/Tenant/CPI/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Service\Profile\Tenant\CPI;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Service/Profile/Types.php b/app/libraries/Airavata/Service/Profile/Types.php
index f6eafb7..271a25e 100644
--- a/app/libraries/Airavata/Service/Profile/Types.php
+++ b/app/libraries/Airavata/Service/Profile/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Service\Profile;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Service/Profile/User/CPI/Error/Types.php b/app/libraries/Airavata/Service/Profile/User/CPI/Error/Types.php
index b633c38..ab0f081 100644
--- a/app/libraries/Airavata/Service/Profile/User/CPI/Error/Types.php
+++ b/app/libraries/Airavata/Service/Profile/User/CPI/Error/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Service\Profile\User\CPI\Error;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Service/Profile/User/CPI/Types.php b/app/libraries/Airavata/Service/Profile/User/CPI/Types.php
index c5c6626..bceeb65 100644
--- a/app/libraries/Airavata/Service/Profile/User/CPI/Types.php
+++ b/app/libraries/Airavata/Service/Profile/User/CPI/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Service\Profile\User\CPI;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Service/Profile/User/CPI/UserProfileService.php b/app/libraries/Airavata/Service/Profile/User/CPI/UserProfileService.php
index 6c773b6..0efa67e 100644
--- a/app/libraries/Airavata/Service/Profile/User/CPI/UserProfileService.php
+++ b/app/libraries/Airavata/Service/Profile/User/CPI/UserProfileService.php
@@ -1,7 +1,7 @@
<?php
namespace Airavata\Service\Profile\User\CPI;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -128,6 +128,7 @@
public function doesUserExist(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayId);
}
+
class UserProfileServiceClient implements \Airavata\Service\Profile\User\CPI\UserProfileServiceIf {
protected $input_ = null;
protected $output_ = null;
@@ -494,6 +495,7 @@
}
+
// HELPER FUNCTIONS AND STRUCTURES
class UserProfileService_addUserProfile_args {
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 92c6582b..4637b49 100755
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -27,6 +27,7 @@
class ExperimentUtilities
{
+ const FILE_UNAVAILABLE_ICON_TOOLTIP = ' <span class="glyphicon glyphicon-warning-sign" data-toggle="tooltip" data-placement="right" title="File is not available for download."></span></p>';
private static $experimentPath;
private static $relativeExperimentDataDir;
@@ -99,8 +100,13 @@
$fileName = basename($input->value);
}
- echo '<p>' . $input->name . ': <a target="_blank" href="' . URL::to("/") . '/download/?id='
- . $input->value . '">' . $fileName . ' <span class="glyphicon glyphicon-new-window"></span></a></p>';
+ $path = parse_url($currentInputPath)['path'];
+ if(file_exists($path)){
+ echo '<p>' . $input->name . ': <a target="_blank" href="' . URL::to("/") . '/download/?id='
+ . $input->value . '">' . $fileName . ' <span class="glyphicon glyphicon-new-window"></span></a></p>';
+ } else {
+ echo '<p>' . $input->name . ': ' . $fileName . self::FILE_UNAVAILABLE_ICON_TOOLTIP;
+ }
}else if($input->type == DataType::URI_COLLECTION) {
$uriList = $input->value;
@@ -121,8 +127,13 @@
$fileName = basename($input->value);
}
- $optFilesHtml = $optFilesHtml . '<a target="_blank" href="' . URL::to("/") . '/download/?id='
- . $uri . '">' . $fileName . ' <span class="glyphicon glyphicon-new-window"></span></a> ';
+ $path = parse_url($currentInputPath)['path'];
+ if(file_exists($path)){
+ $optFilesHtml = $optFilesHtml . '<a target="_blank" href="' . URL::to("/") . '/download/?id='
+ . $uri . '">' . $fileName . ' <span class="glyphicon glyphicon-new-window"></span></a> ';
+ } else {
+ $optFilesHtml = $optFilesHtml . $fileName . self::FILE_UNAVAILABLE_ICON_TOOLTIP;
+ }
}
@@ -965,17 +976,23 @@
}
}
$path = parse_url($currentOutputPath)['path'];
+ $fileName = basename($currentOutputPath);
if(file_exists($path)){
- $fileName = basename($currentOutputPath);
echo '<p>' . $output->name . ': <a target="_blank" href="' . URL::to("/")
. '/download/?id=' . urlencode($output->value) . '">' . $fileName
. ' <span class="glyphicon glyphicon-new-window"></span></a></p>';
+ } else {
+ echo '<p>' . $output->name . ': ' . $fileName . self::FILE_UNAVAILABLE_ICON_TOOLTIP . ' </p>';
}
}else {
$fileName = basename($output->value);
- echo '<p>' . $output->name . ': <a target="_blank" href="' . URL::to("/")
- . '/download/?id=' . urlencode($output->value) . '">' . $fileName
- . ' <span class="glyphicon glyphicon-new-window"></span></a></p>';
+ if(file_exists($path)){
+ echo '<p>' . $output->name . ': <a target="_blank" href="' . URL::to("/")
+ . '/download/?id=' . urlencode($output->value) . '">' . $fileName
+ . ' <span class="glyphicon glyphicon-new-window"></span></a></p>';
+ } else {
+ echo '<p>' . $output->name . ': ' . $fileName . self::FILE_UNAVAILABLE_ICON_TOOLTIP . ' </p>';
+ }
}
}
} elseif ($output->type == DataType::STRING) {
diff --git a/app/libraries/SharingUtilities.php b/app/libraries/SharingUtilities.php
index 1784da3..4924eef 100755
--- a/app/libraries/SharingUtilities.php
+++ b/app/libraries/SharingUtilities.php
@@ -25,18 +25,8 @@
* @return True if the user has read permission, false otherwise.
*/
public static function userCanRead($uid, $resourceId, $dataResourceType) {
- // If the user is the owner, then it is implied they can read the resource
- $owner = SharingUtilities::getSharedResourceOwner($resourceId, $dataResourceType);
- if ($uid == $owner) {
- return true;
- }
- $read = GrouperUtilities::getAllAccessibleUsers($resourceId, $dataResourceType, ResourcePermissionType::READ);
- foreach($read as $user) {
- if (strcmp($uid, $user) === 0) {
- return true;
- }
- }
- return false;
+
+ return Airavata::userHasAccess(Session::get('authz-token'), $resourceId, ResourcePermissionType::READ);
}
/**
@@ -48,18 +38,8 @@
* @return True if the user has write permission, false otherwise.
*/
public static function userCanWrite($uid, $resourceId, $dataResourceType) {
- // If the user is the owner, then it is implied they can write to the resource
- $owner = SharingUtilities::getSharedResourceOwner($resourceId, $dataResourceType);
- if ($uid == $owner) {
- return true;
- }
- $write = GrouperUtilities::getAllAccessibleUsers($resourceId, $dataResourceType, ResourcePermissionType::WRITE);
- foreach($write as $user) {
- if (strcmp($uid, $user) === 0) {
- return true;
- }
- }
- return false;
+
+ return Airavata::userHasAccess(Session::get('authz-token'), $resourceId, ResourcePermissionType::WRITE);
}
/**
diff --git a/app/libraries/URPUtilities.php b/app/libraries/URPUtilities.php
index 48dca96..8008d05 100644
--- a/app/libraries/URPUtilities.php
+++ b/app/libraries/URPUtilities.php
@@ -11,12 +11,14 @@
public static function get_or_create_user_resource_profile()
{
- $userResourceProfile = URPUtilities::get_user_resource_profile();
- // Check if user has UserResourceProfile by checking isNull flag
- if ($userResourceProfile->isNull)
+ if (!URPUtilities::is_user_resource_profile_exists())
{
$userResourceProfile = URPUtilities::create_user_resource_profile();
}
+ else
+ {
+ $userResourceProfile = URPUtilities::get_user_resource_profile();
+ }
return $userResourceProfile;
}
@@ -27,6 +29,13 @@
return Airavata::getUserResourceProfile(Session::get('authz-token'), $userId, $gatewayId);
}
+ public static function is_user_resource_profile_exists()
+ {
+ $userId = Session::get('username');
+ $gatewayId = Session::get('gateway_id');
+ return Airavata::isUserResourceProfileExists(Session::get('authz-token'), $userId, $gatewayId);
+ }
+
public static function create_user_resource_profile()
{
@@ -58,7 +67,7 @@
$userId = Session::get('username');
$gatewayId = Session::get('gateway_id');
- $all_ssh_pub_key_summaries = Airavata::getAllCredentialSummaryForUsersInGateway(Session::get('authz-token'), SummaryType::SSH, $gatewayId, $userId);
+ $all_ssh_pub_key_summaries = Airavata::getAllCredentialSummaries(Session::get('authz-token'), SummaryType::SSH);
foreach ($all_ssh_pub_key_summaries as $ssh_pub_key_summary) {
# strip whitespace from public key: there can't be trailing
# whitespace in a public key entry in the authorized_keys file
@@ -123,9 +132,9 @@
{
$userComputeResourcePreferencesById = array();
- $userResourceProfile = URPUtilities::get_user_resource_profile();
- if (!$userResourceProfile->isNull)
+ if (URPUtilities::is_user_resource_profile_exists())
{
+ $userResourceProfile = URPUtilities::get_user_resource_profile();
$userComputeResourcePreferences = $userResourceProfile->userComputeResourcePreferences;
// Put $userComputeResourcePreferences in a map keyed by computeResourceId
foreach( $userComputeResourcePreferences as $userComputeResourcePreference )
diff --git a/app/routes.php b/app/routes.php
index 61f15eb..9e876d6 100755
--- a/app/routes.php
+++ b/app/routes.php
@@ -34,6 +34,8 @@
Route::get("logout", "AccountController@logout");
+Route::post("api-login", "AccountController@apiLoginSubmit");
+
Route::get("forgot-password", "AccountController@forgotPassword");
Route::get("reset-password", "AccountController@resetPassword");
diff --git a/app/views/admin/manage-credentials.blade.php b/app/views/admin/manage-credentials.blade.php
index daa6149..ada8041 100644
--- a/app/views/admin/manage-credentials.blade.php
+++ b/app/views/admin/manage-credentials.blade.php
@@ -15,58 +15,79 @@
<div class="container-fluid">
<div class="col-md-12">
@if( Session::has("message"))
- <div class="row">
- <div class="alert alert-success alert-dismissible" role="alert">
- <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span
- class="sr-only">Close</span></button>
- {{ Session::get("message") }}
- </div>
+ <div class="alert alert-success alert-dismissible" role="alert">
+ <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span
+ class="sr-only">Close</span></button>
+ {{{ Session::get("message") }}}
</div>
{{ Session::forget("message") }}
@endif
+ @if( Session::has("error-message"))
+ <div class="alert alert-danger alert-dismissible" role="alert">
+ <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span
+ class="sr-only">Close</span></button>
+ {{{ Session::get("error-message") }}}
+ </div>
+ {{ Session::forget("error-message") }}
+ @endif
+
<h1 class="text-center">SSH Keys</h1>
+ <div class="error-alert"></div>
+
@if(Session::has("admin"))
- <table class="table">
- <tr class="text-center table-condensed">
- <td>
- <button class="btn btn-default generate-ssh">Generate a new token</button>
- </td>
- </tr>
- </table>
- <div class="loading-img text-center hide">
- <img src="../../assets/ajax-loader.gif"/>
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ <h3 class="panel-title">Generate New SSH Key</h3>
+ </div>
+ <div class="panel-body">
+ <form id="new-ssh-form-submit" class="form-inline" action="{{URL::to('/')}}/admin/create-ssh-token" method="post">
+ <div id="credential-description-form-group" class="form-group">
+ <label for="credential-description" class="sr-only">Description for new SSH key</label>
+ <input type="text" id="credential-description" name="description" class="form-control" placeholder="Description" required/>
+ </div>
+ <button type="submit" class="btn btn-default">Generate</button>
+ </form>
+ </div>
</div>
@endif
- <table class="table table-bordered table-condensed" style="word-wrap: break-word;">
- <tr>
- <th class="text-center">
- Token
- </th>
- <th class="text-center">Public Key</th>
- @if( Session::has("admin"))
- <th>Delete</th>
- @endif
- </tr>
- <tbody class="token-values-ssh">
- @foreach( $tokens as $token => $publicKey)
- <tr>
- <td class="">
- {{ $token }}
- </td>
- <td class="public-key">
- {{ $publicKey }}
- </td>
- @if( Session::has("admin"))
- <td>
- <span data-token="{{$token}}" class="glyphicon glyphicon-trash remove-ssh-token"></span>
- </td>
- @endif
- </tr>
+
+ <ul class="list-group">
+ @foreach ($tokens as $val)
+ <li class="list-group-item credential-item">
+ <div class="row row_desc">
+ <div class="col-md-12 ssh_description">
+ @if($val->description!=null)
+ <p><strong>{{{ $val->description }}}</strong></p>
+ @else
+ <p style="color:red"><strong>NO DESCRIPTION! ({{{ $val->token }}})</strong></p>
+ @endif
+ </div>
+ </div><!-- .row -->
+ <div class="row row_details">
+ <div class="col-md-6">
+ <div class="input-group">
+ <input type="text" class="form-control public-key" readonly
+ id="credential-publickey-{{$val->token}}"
+ value="{{ $val->publicKey }}">
+ <span class="input-group-btn">
+ <button type="button" class="btn btn-default copy-credential"
+ data-clipboard-target="#credential-publickey-{{$val->token}}"
+ data-toggle="tooltip" data-placement="bottom"
+ data-title="Copied!" data-trigger="manual">
+ Copy
+ </button>
+ </span>
+ </div>
+ </div>
+ <div class="col-md-6">
+ <button data-token="{{$val->token}}"class="btn btn-danger delete-credential"
+ @if(!Session::has("admin")) disabled @endif>Delete</button>
+ </div><br/>
+ </div><!-- .row -->
+ </li>
@endforeach
- </tbody>
- </table>
-
+ </ul>
<!--
@if(Session::has("admin"))
@@ -113,34 +134,38 @@
<img src="../../assets/ajax-loader.gif"/>
</div>
@endif
- <table class="table table-bordered table-condensed" style="word-wrap: break-word;">
- <tr>
- <th class="text-center">
- Token
- </th>
- <th class="text-center">Description</th>
- @if( Session::has("admin"))
- <th>Delete</th>
- @endif
- </tr>
- <tbody class="token-values">
- @foreach( $pwdTokens as $token => $publicKey)
- <tr>
- <td class="">
- {{ $token }}
- </td>
- <td class="description">
- {{ $publicKey }}
- </td>
- @if( Session::has("admin"))
- <td>
- <span data-token="{{$token}}" class="glyphicon glyphicon-trash remove-pwd-token"></span>
- </td>
- @endif
- </tr>
+ <ul class="list-group">
+ @foreach ($pwdTokens as $token => $desc)
+ <li class="list-group-item credential-item">
+ <div class="row row_desc">
+ <div class="col-md-12 pwd_description">
+ <p><strong>{{{ $desc }}}</strong></p>
+ </div>
+ </div><!-- .row -->
+ <div class="row row_details">
+ <div class="col-md-6">
+ <div class="input-group">
+ <input type="text" class="form-control public-key" readonly
+ id="credential-publickey-{{$token}}"
+ value="{{ $token }}">
+ <span class="input-group-btn">
+ <button type="button" class="btn btn-default copy-credential"
+ data-clipboard-target="#credential-publickey-{{$token}}"
+ data-toggle="tooltip" data-placement="bottom"
+ data-title="Copied!" data-trigger="manual">
+ Copy
+ </button>
+ </span>
+ </div>
+ </div>
+ <div class="col-md-6">
+ <button data-token="{{$token}}"class="btn btn-danger remove-pwd-token"
+ @if(!Session::has("admin")) disabled @endif>Delete</button>
+ </div><br/>
+ </div><!-- .row -->
+ </li>
@endforeach
- </tbody>
- </table>
+ </ul>
{{--<h1 class="text-center">Amazon Credentials</h1>--}}
@@ -162,6 +187,56 @@
</div>
</div>
+<div class="modal fade" id="delete-credential-modal" tabindex="-1" role="dialog" aria-labelledby="delete-credential-modal-title"
+ aria-hidden="true">
+ <div class="modal-dialog">
+
+ <form action="{{URL::to('/')}}/admin/remove-ssh-token" method="POST">
+ <div class="modal-content">
+ <div class="modal-header">
+ <h3 class="text-center" id="delete-credential-modal-title">Delete SSH Public Key</h3>
+ </div>
+ <div class="modal-body">
+ <input type="hidden" class="form-control" name="token"/>
+
+ Do you really want to delete the "<span class="credential-description"></span>" SSH public key?
+ </div>
+ <div class="modal-footer">
+ <div class="form-group">
+ <input type="submit" class="btn btn-danger" value="Delete"/>
+ <input type="button" class="btn btn-default" data-dismiss="modal" value="Cancel"/>
+ </div>
+ </div>
+ </div>
+ </form>
+ </div>
+</div>
+
+<div class="modal fade" id="delete-pwd-modal" tabindex="-1" role="dialog" aria-labelledby="delete-pwd-modal-title"
+ aria-hidden="true">
+ <div class="modal-dialog">
+
+ <form action="{{URL::to('/')}}/admin/remove-pwd-token" method="POST">
+ <div class="modal-content">
+ <div class="modal-header">
+ <h3 class="text-center" id="delete-pwd-modal-title">Delete Password Credential</h3>
+ </div>
+ <div class="modal-body">
+ <input type="hidden" class="form-control" name="token"/>
+
+ Do you really want to delete the "<span class="pwd-description"></span>" Password Credential?
+ </div>
+ <div class="modal-footer">
+ <div class="form-group">
+ <input type="submit" class="btn btn-danger" value="Delete"/>
+ <input type="button" class="btn btn-default" data-dismiss="modal" value="Cancel"/>
+ </div>
+ </div>
+ </div>
+ </form>
+ </div>
+</div>
+
<div class="modal fade" id="pwd-cred-form" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
@@ -217,101 +292,80 @@
@section('scripts')
@parent
+{{ HTML::script('js/clipboard.min.js') }}
<script>
- $(".generate-ssh").click( function(){
- $(".loading-img").removeClass("hide");
- $.ajax({
- type: "POST",
- url: "{{URL::to('/')}}/admin/create-ssh-token"
- }).success( function( data){
+ $('.delete-credential').on('click', function(e){
- var tokenJson = data;
-
- //$(".token-values").html("");
- $(".generate-ssh").after("<div class='alert alert-success new-token-msg'>New Token has been generated.</div>");
-
- $(".token-values-ssh").prepend("<tr class='alert alert-success'><td>" + tokenJson.token + "</td><td class='public-key'>" + tokenJson.pubkey + "</td>" + "<td><a href=''><span data-token='"+tokenJson.token+"' class='glyphicon glyphicon-trash remove-token'></span></a></td></<tr>");
- $(".loading-img").addClass("hide");
-
- setInterval( function(){
- $(".new-token-msg").fadeOut();
- }, 3000);
- }).fail( function( data){
- $(".loading-img").addClass("hide");
-
- failureObject = $.parseJSON( data.responseText);
- $(".generate-ssh").after("<div class='alert alert-danger'>" + failureObject.error.message + "</div>");
- });
- });
-
- $(".remove-ssh-token").click( function(){
var removeSpan = $(this);
- var tr = removeSpan.parent().parent();
- var tokenToRemove = removeSpan.data("token");
- var publicKey = tr.children(".public-key").html();
- tr.children(".public-key").html("<div class='alert alert-danger'>Do you really want to remove the token? This action cannot be undone.<br/>" +
- "<span class='btn-group'>"+
- "<input type='button' class='btn btn-default remove-token-confirmation' value='Yes'/>" +
- "<input type='button' class='btn btn-default remove-token-cancel' value='Cancel'/>"+
- "</span></div>");
+ var par = removeSpan.closest("li");
+ var credentialStoreToken = removeSpan.data("token");
+ var credentialDescription = $.trim(par.find('.ssh_description').text());
-
- tr.find( ".remove-token-confirmation").click( function(){
- $(".loading-img").removeClass("hide");
- $.ajax({
- type: "POST",
- data:{ "token" : tokenToRemove},
- url: "{{URL::to('/')}}/admin/remove-ssh-token"
- }).success( function( data){
- if( data.responseText == 1)
- tr.addClass("alert").addClass("alert-danger");
- tr.fadeOut(1000);
- }).fail( function( data){
- tr.after("<tr class='alert alert-danger'><td></td><td>Error occurred : " + $.parseJSON( data.responseText).error.message + "</td><td></td></tr>");
- }).complete( function(){
- $(".loading-img").addClass("hide");
+ $("#delete-credential-modal input[name=token]").val(credentialStoreToken);
+ $("#delete-credential-modal .credential-description").text(credentialDescription);
+ $("#delete-credential-modal").modal("show");
+ });
- });
- });
- tr.find( ".remove-token-cancel").click( function(){
- tr.children(".public-key").html( publicKey);
- });
-
+ $('#credential-description').on('invalid', function(event){
+ this.setCustomValidity("Please provide a description");
+ $('#credential-description-form-group').addClass('has-error');
+ });
+ $('#credential-description').on('keyup input change', function(event){
+ if (this.checkValidity) {
+ // Reset custom error message. If it isn't empty string it is considered invalid.
+ this.setCustomValidity("");
+ // checkValidity will cause invalid event to be dispatched. See invalid
+ // event handler above which will set the custom error message.
+ var valid = this.checkValidity();
+ $('#credential-description-form-group').toggleClass('has-error', !valid);
+ }
+ });
+
+ $("#new-ssh-form-submit").submit( function(){
+ var description = $("#credential-description").val();
+ var items = $('.ssh_description').map(function () { return $.trim($(this).text()); }).get();
+ for(var i=0;i<items.length;++i){
+ if(description === $.trim(items[i])){
+ $('.error-alert').html("<div class='alert alert-danger' role='alert'><button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Close</span></button>Description should be unique for each key.</div>");
+ return false;
+ }
+ }
+ return true;
});
+ $("#register-pwd-form").submit( function() {
+ var pcred_description = $("#description").val();
+ var items = $('.pwd_description').map(function() { return $.trim($(this).text()); }).get();
+ for(var i=0;i<items.length;++i){
+ if(pcred_description === $.trim(items[i])){
+ $("#pwd-cred-form").modal("hide");
+ $('.error-alert').html("<div class='alert alert-danger' role='alert'><button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Close</span></button>Description should be unique for each key.</div>");
+ return false;
+ }
+ }
+ return true;
+
+ });
+
+
$(".remove-pwd-token").click( function(){
- var removeSpan = $(this);
- var tr = removeSpan.parent().parent();
- var tokenToRemove = removeSpan.data("token");
- var description = tr.children(".description").html();
- tr.children(".description").html("<div class='alert alert-danger'>Do you really want to remove the token? This action cannot be undone.<br/>" +
- "<span class='btn-group'>"+
- "<input type='button' class='btn btn-default remove-token-confirmation' value='Yes'/>" +
- "<input type='button' class='btn btn-default remove-token-cancel' value='Cancel'/>"+
- "</span></div>");
-
-
- tr.find( ".remove-token-confirmation").click( function(){
- $(".loading-img-pwd").removeClass("hide");
- $.ajax({
- type: "POST",
- data:{ "token" : tokenToRemove},
- url: "{{URL::to('/')}}/admin/remove-pwd-token"
- }).success( function( data){
- if( data.responseText == 1)
- tr.addClass("alert").addClass("alert-danger");
- tr.fadeOut(1000);
- }).fail( function( data){
- tr.after("<tr class='alert alert-danger'><td></td><td>Error occurred : " + $.parseJSON( data.responseText).error.message + "</td><td></td></tr>");
- }).complete( function(){
- $(".loading-img-pwd").addClass("hide");
-
- });
- });
- tr.find( ".remove-token-cancel").click( function(){
- tr.children(".description").html( description);
- });
-
+ var removeSpan = $(this);
+ var par = removeSpan.closest("li");
+ var credentialStoreToken = removeSpan.data("token");
+ var credentialDescription = $.trim(par.find('.pwd_description').text());
+
+ $("#delete-pwd-modal input[name=token]").val(credentialStoreToken);
+ $("#delete-pwd-modal .pwd-description").text(credentialDescription);
+ $("#delete-pwd-modal").modal("show");
});
+
+ var clipboard = new Clipboard('.copy-credential');
+ clipboard.on('success', function(e){
+ // Show 'Copied!' tooltip for 2 seconds on successful copy
+ $(e.trigger).tooltip('show');
+ setTimeout(function(){
+ $(e.trigger).tooltip('hide');
+ }, 2000);
+ });
</script>
@stop
\ No newline at end of file
diff --git a/app/views/partials/compute-resource-preferences.blade.php b/app/views/partials/compute-resource-preferences.blade.php
index 62a3a39..77204b4 100644
--- a/app/views/partials/compute-resource-preferences.blade.php
+++ b/app/views/partials/compute-resource-preferences.blade.php
@@ -89,8 +89,14 @@
<div class="col-md-9">
<select class="form-control gateway-credential-store-token" name="resourceSpecificCredentialStoreToken" >
<option value="">Select a Credential Token from Store</option>
- @foreach( $tokens as $token => $publicKey)
- <option value="{{$token}}" @if( isset( $preferences) ) @if( $token == $preferences->resourceSpecificCredentialStoreToken) selected @endif @endif>{{$token}}</option>
+ @foreach( $tokens as $val)
+ <option value="{{$val->token}}" @if( isset( $preferences) ) @if( $val->token == $preferences->resourceSpecificCredentialStoreToken) selected @endif @endif>
+ @if($val->description)
+ {{{$val->description}}}
+ @else
+ NO DESCRIPTION: ({{{$val->token}}})
+ @endif
+ </option>
@endforeach
<option value="">DO-NO-SET</option>
</select>
diff --git a/app/views/partials/experiment-info.blade.php b/app/views/partials/experiment-info.blade.php
index ecc71b4..e174900 100644
--- a/app/views/partials/experiment-info.blade.php
+++ b/app/views/partials/experiment-info.blade.php
@@ -446,6 +446,7 @@
}
return false;
});
+ $('[data-toggle="tooltip"]').tooltip();
</script>
diff --git a/app/views/partials/gateway-preferences-block.blade.php b/app/views/partials/gateway-preferences-block.blade.php
index c112b46..50ff4b9 100644
--- a/app/views/partials/gateway-preferences-block.blade.php
+++ b/app/views/partials/gateway-preferences-block.blade.php
@@ -27,14 +27,26 @@
<label class="control-label col-md-12">{{ Session::get('theme') }} Credential Store Token</label>
<div class="col-md-9">
<select class="form-control gateway-credential-store-token" id="gateway-credential-store-token" name="resourceSpecificCredentialStoreToken" data-gpid="{{$gp->gatewayId}}" >
+ <option value="">Select a Credential Token from Store</option>
@if( isset( $gp->profile->credentialStoreToken) )
- @foreach( $tokens as $token => $publicKey)
- <option value="{{$token}}" @if( $token == $gp->profile->credentialStoreToken) selected @endif>{{$token}}</option>
+ @foreach( $tokens as $val)
+ <option value="{{$val->token}}" @if( $val->token == $gp->profile->credentialStoreToken) selected @endif>
+ @if($val->description)
+ {{{$val->description}}}
+ @else
+ NO DESCRIPTION: ({{{$val->token}}})
+ @endif
+ </option>
@endforeach
@else
- <option value="">Select a Credential Token from Store</option>
- @foreach( $tokens as $token => $publicKey)
- <option value="{{$token}}">{{$token}}</option>
+ @foreach( $tokens as $val)
+ <option value="{{$val->token}}">
+ @if($val->description)
+ {{{$val->description}}}
+ @else
+ NO DESCRIPTION: ({{{$val->token}}})
+ @endif
+ </option>
@endforeach
@endif
<option value="">DO-NO-SET</option>
diff --git a/app/views/partials/storage-resource-preferences.blade.php b/app/views/partials/storage-resource-preferences.blade.php
index ca43291..ed6c88b 100644
--- a/app/views/partials/storage-resource-preferences.blade.php
+++ b/app/views/partials/storage-resource-preferences.blade.php
@@ -40,8 +40,14 @@
<div class="col-md-9">
<select class="form-control gateway-credential-store-token" name="resourceSpecificCredentialStoreToken" >
<option value="">Select a Credential Token from Store</option>
- @foreach( $tokens as $token => $publicKey)
- <option value="{{$token}}" @if( isset( $preferences) ) @if( $token == $preferences->resourceSpecificCredentialStoreToken) selected @endif @endif>{{$token}}</option>
+ @foreach( $tokens as $val)
+ <option value="{{$val->token}}" @if( isset( $preferences) ) @if( $val->token == $preferences->resourceSpecificCredentialStoreToken) selected @endif @endif>
+ @if($val->description)
+ {{{$val->description}}}
+ @else
+ NO DESCRIPTION: ({{{$val->token}}})
+ @endif
+ </option>
@endforeach
<option value="">DO-NO-SET</option>
</select>