airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [30/51] [abbrv] [partial] airavata git commit: AIRAVATA-2505 Upgrade Airavata to Thrift 0.10.0
Date Mon, 07 Aug 2017 14:01:06 GMT
http://git-wip-us.apache.org/repos/asf/airavata/blob/14ff0916/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/tenant/ttypes.py
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/tenant/ttypes.py
b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/tenant/ttypes.py
index 493eaff..0f42429 100644
--- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/tenant/ttypes.py
+++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/tenant/ttypes.py
@@ -1,488 +1,452 @@
 #
-# 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
 #
 #  options string: py
 #
 
-from thrift.Thrift import TType, TMessageType, TException, TApplicationException
+from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
+from thrift.protocol.TProtocol import TProtocolException
+import sys
 import apache.airavata.model.commons.ttypes
 
-
 from thrift.transport import TTransport
-from thrift.protocol import TBinaryProtocol, TProtocol
-try:
-  from thrift.protocol import fastbinary
-except:
-  fastbinary = None
-
-
-class TenantApprovalStatus:
-  REQUESTED = 0
-  APPROVED = 1
-  ACTIVE = 2
-  DEACTIVATED = 3
-  CANCELLED = 4
-  DENIED = 5
-  CREATED = 6
-  DEPLOYED = 7
-
-  _VALUES_TO_NAMES = {
-    0: "REQUESTED",
-    1: "APPROVED",
-    2: "ACTIVE",
-    3: "DEACTIVATED",
-    4: "CANCELLED",
-    5: "DENIED",
-    6: "CREATED",
-    7: "DEPLOYED",
-  }
-
-  _NAMES_TO_VALUES = {
-    "REQUESTED": 0,
-    "APPROVED": 1,
-    "ACTIVE": 2,
-    "DEACTIVATED": 3,
-    "CANCELLED": 4,
-    "DENIED": 5,
-    "CREATED": 6,
-    "DEPLOYED": 7,
-  }
-
-
-class TenantPreferences:
-  """
-  Attributes:
-   - tenantAdminFirstName
-   - tenantAdminLastName
-   - tenantAdminEmail
-  """
-
-  thrift_spec = (
-    None, # 0
-    None, # 1
-    None, # 2
-    None, # 3
-    None, # 4
-    None, # 5
-    None, # 6
-    None, # 7
-    None, # 8
-    None, # 9
-    (10, TType.STRING, 'tenantAdminFirstName', None, None, ), # 10
-    (11, TType.STRING, 'tenantAdminLastName', None, None, ), # 11
-    (12, TType.STRING, 'tenantAdminEmail', None, None, ), # 12
-  )
-
-  def __init__(self, tenantAdminFirstName=None, tenantAdminLastName=None, tenantAdminEmail=None,):
-    self.tenantAdminFirstName = tenantAdminFirstName
-    self.tenantAdminLastName = tenantAdminLastName
-    self.tenantAdminEmail = tenantAdminEmail
-
-  def read(self, iprot):
-    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans,
TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-      return
-    iprot.readStructBegin()
-    while True:
-      (fname, ftype, fid) = iprot.readFieldBegin()
-      if ftype == TType.STOP:
-        break
-      if fid == 10:
-        if ftype == TType.STRING:
-          self.tenantAdminFirstName = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 11:
-        if ftype == TType.STRING:
-          self.tenantAdminLastName = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 12:
-        if ftype == TType.STRING:
-          self.tenantAdminEmail = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      else:
-        iprot.skip(ftype)
-      iprot.readFieldEnd()
-    iprot.readStructEnd()
-
-  def write(self, oprot):
-    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec
is not None and fastbinary is not None:
-      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-      return
-    oprot.writeStructBegin('TenantPreferences')
-    if self.tenantAdminFirstName is not None:
-      oprot.writeFieldBegin('tenantAdminFirstName', TType.STRING, 10)
-      oprot.writeString(self.tenantAdminFirstName)
-      oprot.writeFieldEnd()
-    if self.tenantAdminLastName is not None:
-      oprot.writeFieldBegin('tenantAdminLastName', TType.STRING, 11)
-      oprot.writeString(self.tenantAdminLastName)
-      oprot.writeFieldEnd()
-    if self.tenantAdminEmail is not None:
-      oprot.writeFieldBegin('tenantAdminEmail', TType.STRING, 12)
-      oprot.writeString(self.tenantAdminEmail)
-      oprot.writeFieldEnd()
-    oprot.writeFieldStop()
-    oprot.writeStructEnd()
-
-  def validate(self):
-    return
-
-
-  def __hash__(self):
-    value = 17
-    value = (value * 31) ^ hash(self.tenantAdminFirstName)
-    value = (value * 31) ^ hash(self.tenantAdminLastName)
-    value = (value * 31) ^ hash(self.tenantAdminEmail)
-    return value
-
-  def __repr__(self):
-    L = ['%s=%r' % (key, value)
-      for key, value in self.__dict__.iteritems()]
-    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
-  def __eq__(self, other):
-    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
-  def __ne__(self, other):
-    return not (self == other)
-
-class TenantConfig:
-  """
-  Attributes:
-   - oauthClientId
-   - oauthClientSecret
-   - identityServerUserName
-   - identityServerPasswordToken
-  """
-
-  thrift_spec = (
-    None, # 0
-    None, # 1
-    None, # 2
-    None, # 3
-    None, # 4
-    None, # 5
-    None, # 6
-    None, # 7
-    None, # 8
-    None, # 9
-    None, # 10
-    None, # 11
-    None, # 12
-    (13, TType.STRING, 'identityServerUserName', None, None, ), # 13
-    (14, TType.STRING, 'identityServerPasswordToken', None, None, ), # 14
-    None, # 15
-    (16, TType.STRING, 'oauthClientId', None, None, ), # 16
-    (17, TType.STRING, 'oauthClientSecret', None, None, ), # 17
-  )
-
-  def __init__(self, oauthClientId=None, oauthClientSecret=None, identityServerUserName=None,
identityServerPasswordToken=None,):
-    self.oauthClientId = oauthClientId
-    self.oauthClientSecret = oauthClientSecret
-    self.identityServerUserName = identityServerUserName
-    self.identityServerPasswordToken = identityServerPasswordToken
-
-  def read(self, iprot):
-    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans,
TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-      return
-    iprot.readStructBegin()
-    while True:
-      (fname, ftype, fid) = iprot.readFieldBegin()
-      if ftype == TType.STOP:
-        break
-      if fid == 16:
-        if ftype == TType.STRING:
-          self.oauthClientId = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 17:
-        if ftype == TType.STRING:
-          self.oauthClientSecret = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 13:
-        if ftype == TType.STRING:
-          self.identityServerUserName = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 14:
-        if ftype == TType.STRING:
-          self.identityServerPasswordToken = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      else:
-        iprot.skip(ftype)
-      iprot.readFieldEnd()
-    iprot.readStructEnd()
-
-  def write(self, oprot):
-    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec
is not None and fastbinary is not None:
-      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-      return
-    oprot.writeStructBegin('TenantConfig')
-    if self.identityServerUserName is not None:
-      oprot.writeFieldBegin('identityServerUserName', TType.STRING, 13)
-      oprot.writeString(self.identityServerUserName)
-      oprot.writeFieldEnd()
-    if self.identityServerPasswordToken is not None:
-      oprot.writeFieldBegin('identityServerPasswordToken', TType.STRING, 14)
-      oprot.writeString(self.identityServerPasswordToken)
-      oprot.writeFieldEnd()
-    if self.oauthClientId is not None:
-      oprot.writeFieldBegin('oauthClientId', TType.STRING, 16)
-      oprot.writeString(self.oauthClientId)
-      oprot.writeFieldEnd()
-    if self.oauthClientSecret is not None:
-      oprot.writeFieldBegin('oauthClientSecret', TType.STRING, 17)
-      oprot.writeString(self.oauthClientSecret)
-      oprot.writeFieldEnd()
-    oprot.writeFieldStop()
-    oprot.writeStructEnd()
-
-  def validate(self):
-    return
-
-
-  def __hash__(self):
-    value = 17
-    value = (value * 31) ^ hash(self.oauthClientId)
-    value = (value * 31) ^ hash(self.oauthClientSecret)
-    value = (value * 31) ^ hash(self.identityServerUserName)
-    value = (value * 31) ^ hash(self.identityServerPasswordToken)
-    return value
-
-  def __repr__(self):
-    L = ['%s=%r' % (key, value)
-      for key, value in self.__dict__.iteritems()]
-    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
-  def __eq__(self, other):
-    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
-  def __ne__(self, other):
-    return not (self == other)
-
-class Tenant:
-  """
-  Attributes:
-   - tenantId
-   - tenantApprovalStatus
-   - tenantName
-   - domain
-   - emailAddress
-   - tenantAcronym
-   - tenantURL
-   - tenantPublicAbstract
-   - reviewProposalDescription
-   - declinedReason
-   - requestCreationTime
-   - requesterUsername
-  """
-
-  thrift_spec = (
-    None, # 0
-    (1, TType.STRING, 'tenantId', None, None, ), # 1
-    (2, TType.I32, 'tenantApprovalStatus', None, None, ), # 2
-    (3, TType.STRING, 'tenantName', None, None, ), # 3
-    (4, TType.STRING, 'domain', None, None, ), # 4
-    (5, TType.STRING, 'emailAddress', None, None, ), # 5
-    (6, TType.STRING, 'tenantAcronym', None, None, ), # 6
-    (7, TType.STRING, 'tenantURL', None, None, ), # 7
-    (8, TType.STRING, 'tenantPublicAbstract', None, None, ), # 8
-    (9, TType.STRING, 'reviewProposalDescription', None, None, ), # 9
-    None, # 10
-    None, # 11
-    None, # 12
-    None, # 13
-    None, # 14
-    (15, TType.STRING, 'declinedReason', None, None, ), # 15
-    None, # 16
-    None, # 17
-    (18, TType.I64, 'requestCreationTime', None, None, ), # 18
-    (19, TType.STRING, 'requesterUsername', None, None, ), # 19
-  )
-
-  def __init__(self, tenantId=None, tenantApprovalStatus=None, tenantName=None, domain=None,
emailAddress=None, tenantAcronym=None, tenantURL=None, tenantPublicAbstract=None, reviewProposalDescription=None,
declinedReason=None, requestCreationTime=None, requesterUsername=None,):
-    self.tenantId = tenantId
-    self.tenantApprovalStatus = tenantApprovalStatus
-    self.tenantName = tenantName
-    self.domain = domain
-    self.emailAddress = emailAddress
-    self.tenantAcronym = tenantAcronym
-    self.tenantURL = tenantURL
-    self.tenantPublicAbstract = tenantPublicAbstract
-    self.reviewProposalDescription = reviewProposalDescription
-    self.declinedReason = declinedReason
-    self.requestCreationTime = requestCreationTime
-    self.requesterUsername = requesterUsername
-
-  def read(self, iprot):
-    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans,
TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-      return
-    iprot.readStructBegin()
-    while True:
-      (fname, ftype, fid) = iprot.readFieldBegin()
-      if ftype == TType.STOP:
-        break
-      if fid == 1:
-        if ftype == TType.STRING:
-          self.tenantId = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 2:
-        if ftype == TType.I32:
-          self.tenantApprovalStatus = iprot.readI32()
-        else:
-          iprot.skip(ftype)
-      elif fid == 3:
-        if ftype == TType.STRING:
-          self.tenantName = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 4:
-        if ftype == TType.STRING:
-          self.domain = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 5:
-        if ftype == TType.STRING:
-          self.emailAddress = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 6:
-        if ftype == TType.STRING:
-          self.tenantAcronym = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 7:
-        if ftype == TType.STRING:
-          self.tenantURL = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 8:
-        if ftype == TType.STRING:
-          self.tenantPublicAbstract = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 9:
-        if ftype == TType.STRING:
-          self.reviewProposalDescription = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 15:
-        if ftype == TType.STRING:
-          self.declinedReason = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      elif fid == 18:
-        if ftype == TType.I64:
-          self.requestCreationTime = iprot.readI64()
-        else:
-          iprot.skip(ftype)
-      elif fid == 19:
-        if ftype == TType.STRING:
-          self.requesterUsername = iprot.readString()
-        else:
-          iprot.skip(ftype)
-      else:
-        iprot.skip(ftype)
-      iprot.readFieldEnd()
-    iprot.readStructEnd()
-
-  def write(self, oprot):
-    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec
is not None and fastbinary is not None:
-      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-      return
-    oprot.writeStructBegin('Tenant')
-    if self.tenantId is not None:
-      oprot.writeFieldBegin('tenantId', TType.STRING, 1)
-      oprot.writeString(self.tenantId)
-      oprot.writeFieldEnd()
-    if self.tenantApprovalStatus is not None:
-      oprot.writeFieldBegin('tenantApprovalStatus', TType.I32, 2)
-      oprot.writeI32(self.tenantApprovalStatus)
-      oprot.writeFieldEnd()
-    if self.tenantName is not None:
-      oprot.writeFieldBegin('tenantName', TType.STRING, 3)
-      oprot.writeString(self.tenantName)
-      oprot.writeFieldEnd()
-    if self.domain is not None:
-      oprot.writeFieldBegin('domain', TType.STRING, 4)
-      oprot.writeString(self.domain)
-      oprot.writeFieldEnd()
-    if self.emailAddress is not None:
-      oprot.writeFieldBegin('emailAddress', TType.STRING, 5)
-      oprot.writeString(self.emailAddress)
-      oprot.writeFieldEnd()
-    if self.tenantAcronym is not None:
-      oprot.writeFieldBegin('tenantAcronym', TType.STRING, 6)
-      oprot.writeString(self.tenantAcronym)
-      oprot.writeFieldEnd()
-    if self.tenantURL is not None:
-      oprot.writeFieldBegin('tenantURL', TType.STRING, 7)
-      oprot.writeString(self.tenantURL)
-      oprot.writeFieldEnd()
-    if self.tenantPublicAbstract is not None:
-      oprot.writeFieldBegin('tenantPublicAbstract', TType.STRING, 8)
-      oprot.writeString(self.tenantPublicAbstract)
-      oprot.writeFieldEnd()
-    if self.reviewProposalDescription is not None:
-      oprot.writeFieldBegin('reviewProposalDescription', TType.STRING, 9)
-      oprot.writeString(self.reviewProposalDescription)
-      oprot.writeFieldEnd()
-    if self.declinedReason is not None:
-      oprot.writeFieldBegin('declinedReason', TType.STRING, 15)
-      oprot.writeString(self.declinedReason)
-      oprot.writeFieldEnd()
-    if self.requestCreationTime is not None:
-      oprot.writeFieldBegin('requestCreationTime', TType.I64, 18)
-      oprot.writeI64(self.requestCreationTime)
-      oprot.writeFieldEnd()
-    if self.requesterUsername is not None:
-      oprot.writeFieldBegin('requesterUsername', TType.STRING, 19)
-      oprot.writeString(self.requesterUsername)
-      oprot.writeFieldEnd()
-    oprot.writeFieldStop()
-    oprot.writeStructEnd()
-
-  def validate(self):
-    if self.tenantId is None:
-      raise TProtocol.TProtocolException(message='Required field tenantId is unset!')
-    if self.tenantApprovalStatus is None:
-      raise TProtocol.TProtocolException(message='Required field tenantApprovalStatus is
unset!')
-    return
-
-
-  def __hash__(self):
-    value = 17
-    value = (value * 31) ^ hash(self.tenantId)
-    value = (value * 31) ^ hash(self.tenantApprovalStatus)
-    value = (value * 31) ^ hash(self.tenantName)
-    value = (value * 31) ^ hash(self.domain)
-    value = (value * 31) ^ hash(self.emailAddress)
-    value = (value * 31) ^ hash(self.tenantAcronym)
-    value = (value * 31) ^ hash(self.tenantURL)
-    value = (value * 31) ^ hash(self.tenantPublicAbstract)
-    value = (value * 31) ^ hash(self.reviewProposalDescription)
-    value = (value * 31) ^ hash(self.declinedReason)
-    value = (value * 31) ^ hash(self.requestCreationTime)
-    value = (value * 31) ^ hash(self.requesterUsername)
-    return value
-
-  def __repr__(self):
-    L = ['%s=%r' % (key, value)
-      for key, value in self.__dict__.iteritems()]
-    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
-  def __eq__(self, other):
-    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
-  def __ne__(self, other):
-    return not (self == other)
+
+
+class TenantApprovalStatus(object):
+    REQUESTED = 0
+    APPROVED = 1
+    ACTIVE = 2
+    DEACTIVATED = 3
+    CANCELLED = 4
+    DENIED = 5
+    CREATED = 6
+    DEPLOYED = 7
+
+    _VALUES_TO_NAMES = {
+        0: "REQUESTED",
+        1: "APPROVED",
+        2: "ACTIVE",
+        3: "DEACTIVATED",
+        4: "CANCELLED",
+        5: "DENIED",
+        6: "CREATED",
+        7: "DEPLOYED",
+    }
+
+    _NAMES_TO_VALUES = {
+        "REQUESTED": 0,
+        "APPROVED": 1,
+        "ACTIVE": 2,
+        "DEACTIVATED": 3,
+        "CANCELLED": 4,
+        "DENIED": 5,
+        "CREATED": 6,
+        "DEPLOYED": 7,
+    }
+
+
+class TenantPreferences(object):
+    """
+    Attributes:
+     - tenantAdminFirstName
+     - tenantAdminLastName
+     - tenantAdminEmail
+    """
+
+    thrift_spec = (
+        None,  # 0
+        None,  # 1
+        None,  # 2
+        None,  # 3
+        None,  # 4
+        None,  # 5
+        None,  # 6
+        None,  # 7
+        None,  # 8
+        None,  # 9
+        (10, TType.STRING, 'tenantAdminFirstName', 'UTF8', None, ),  # 10
+        (11, TType.STRING, 'tenantAdminLastName', 'UTF8', None, ),  # 11
+        (12, TType.STRING, 'tenantAdminEmail', 'UTF8', None, ),  # 12
+    )
+
+    def __init__(self, tenantAdminFirstName=None, tenantAdminLastName=None, tenantAdminEmail=None,):
+        self.tenantAdminFirstName = tenantAdminFirstName
+        self.tenantAdminLastName = tenantAdminLastName
+        self.tenantAdminEmail = tenantAdminEmail
+
+    def read(self, iprot):
+        if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec is not None:
+            iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
+            return
+        iprot.readStructBegin()
+        while True:
+            (fname, ftype, fid) = iprot.readFieldBegin()
+            if ftype == TType.STOP:
+                break
+            if fid == 10:
+                if ftype == TType.STRING:
+                    self.tenantAdminFirstName = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 11:
+                if ftype == TType.STRING:
+                    self.tenantAdminLastName = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 12:
+                if ftype == TType.STRING:
+                    self.tenantAdminEmail = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            else:
+                iprot.skip(ftype)
+            iprot.readFieldEnd()
+        iprot.readStructEnd()
+
+    def write(self, oprot):
+        if oprot._fast_encode is not None and self.thrift_spec is not None:
+            oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
+            return
+        oprot.writeStructBegin('TenantPreferences')
+        if self.tenantAdminFirstName is not None:
+            oprot.writeFieldBegin('tenantAdminFirstName', TType.STRING, 10)
+            oprot.writeString(self.tenantAdminFirstName.encode('utf-8') if sys.version_info[0]
== 2 else self.tenantAdminFirstName)
+            oprot.writeFieldEnd()
+        if self.tenantAdminLastName is not None:
+            oprot.writeFieldBegin('tenantAdminLastName', TType.STRING, 11)
+            oprot.writeString(self.tenantAdminLastName.encode('utf-8') if sys.version_info[0]
== 2 else self.tenantAdminLastName)
+            oprot.writeFieldEnd()
+        if self.tenantAdminEmail is not None:
+            oprot.writeFieldBegin('tenantAdminEmail', TType.STRING, 12)
+            oprot.writeString(self.tenantAdminEmail.encode('utf-8') if sys.version_info[0]
== 2 else self.tenantAdminEmail)
+            oprot.writeFieldEnd()
+        oprot.writeFieldStop()
+        oprot.writeStructEnd()
+
+    def validate(self):
+        return
+
+    def __repr__(self):
+        L = ['%s=%r' % (key, value)
+             for key, value in self.__dict__.items()]
+        return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+    def __eq__(self, other):
+        return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+    def __ne__(self, other):
+        return not (self == other)
+
+
+class TenantConfig(object):
+    """
+    Attributes:
+     - oauthClientId
+     - oauthClientSecret
+     - identityServerUserName
+     - identityServerPasswordToken
+    """
+
+    thrift_spec = (
+        None,  # 0
+        None,  # 1
+        None,  # 2
+        None,  # 3
+        None,  # 4
+        None,  # 5
+        None,  # 6
+        None,  # 7
+        None,  # 8
+        None,  # 9
+        None,  # 10
+        None,  # 11
+        None,  # 12
+        (13, TType.STRING, 'identityServerUserName', 'UTF8', None, ),  # 13
+        (14, TType.STRING, 'identityServerPasswordToken', 'UTF8', None, ),  # 14
+        None,  # 15
+        (16, TType.STRING, 'oauthClientId', 'UTF8', None, ),  # 16
+        (17, TType.STRING, 'oauthClientSecret', 'UTF8', None, ),  # 17
+    )
+
+    def __init__(self, oauthClientId=None, oauthClientSecret=None, identityServerUserName=None,
identityServerPasswordToken=None,):
+        self.oauthClientId = oauthClientId
+        self.oauthClientSecret = oauthClientSecret
+        self.identityServerUserName = identityServerUserName
+        self.identityServerPasswordToken = identityServerPasswordToken
+
+    def read(self, iprot):
+        if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec is not None:
+            iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
+            return
+        iprot.readStructBegin()
+        while True:
+            (fname, ftype, fid) = iprot.readFieldBegin()
+            if ftype == TType.STOP:
+                break
+            if fid == 16:
+                if ftype == TType.STRING:
+                    self.oauthClientId = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 17:
+                if ftype == TType.STRING:
+                    self.oauthClientSecret = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 13:
+                if ftype == TType.STRING:
+                    self.identityServerUserName = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 14:
+                if ftype == TType.STRING:
+                    self.identityServerPasswordToken = iprot.readString().decode('utf-8')
if sys.version_info[0] == 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            else:
+                iprot.skip(ftype)
+            iprot.readFieldEnd()
+        iprot.readStructEnd()
+
+    def write(self, oprot):
+        if oprot._fast_encode is not None and self.thrift_spec is not None:
+            oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
+            return
+        oprot.writeStructBegin('TenantConfig')
+        if self.identityServerUserName is not None:
+            oprot.writeFieldBegin('identityServerUserName', TType.STRING, 13)
+            oprot.writeString(self.identityServerUserName.encode('utf-8') if sys.version_info[0]
== 2 else self.identityServerUserName)
+            oprot.writeFieldEnd()
+        if self.identityServerPasswordToken is not None:
+            oprot.writeFieldBegin('identityServerPasswordToken', TType.STRING, 14)
+            oprot.writeString(self.identityServerPasswordToken.encode('utf-8') if sys.version_info[0]
== 2 else self.identityServerPasswordToken)
+            oprot.writeFieldEnd()
+        if self.oauthClientId is not None:
+            oprot.writeFieldBegin('oauthClientId', TType.STRING, 16)
+            oprot.writeString(self.oauthClientId.encode('utf-8') if sys.version_info[0] ==
2 else self.oauthClientId)
+            oprot.writeFieldEnd()
+        if self.oauthClientSecret is not None:
+            oprot.writeFieldBegin('oauthClientSecret', TType.STRING, 17)
+            oprot.writeString(self.oauthClientSecret.encode('utf-8') if sys.version_info[0]
== 2 else self.oauthClientSecret)
+            oprot.writeFieldEnd()
+        oprot.writeFieldStop()
+        oprot.writeStructEnd()
+
+    def validate(self):
+        return
+
+    def __repr__(self):
+        L = ['%s=%r' % (key, value)
+             for key, value in self.__dict__.items()]
+        return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+    def __eq__(self, other):
+        return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+    def __ne__(self, other):
+        return not (self == other)
+
+
+class Tenant(object):
+    """
+    Attributes:
+     - tenantId
+     - tenantApprovalStatus
+     - tenantName
+     - domain
+     - emailAddress
+     - tenantAcronym
+     - tenantURL
+     - tenantPublicAbstract
+     - reviewProposalDescription
+     - declinedReason
+     - requestCreationTime
+     - requesterUsername
+    """
+
+    thrift_spec = (
+        None,  # 0
+        (1, TType.STRING, 'tenantId', 'UTF8', None, ),  # 1
+        (2, TType.I32, 'tenantApprovalStatus', None, None, ),  # 2
+        (3, TType.STRING, 'tenantName', 'UTF8', None, ),  # 3
+        (4, TType.STRING, 'domain', 'UTF8', None, ),  # 4
+        (5, TType.STRING, 'emailAddress', 'UTF8', None, ),  # 5
+        (6, TType.STRING, 'tenantAcronym', 'UTF8', None, ),  # 6
+        (7, TType.STRING, 'tenantURL', 'UTF8', None, ),  # 7
+        (8, TType.STRING, 'tenantPublicAbstract', 'UTF8', None, ),  # 8
+        (9, TType.STRING, 'reviewProposalDescription', 'UTF8', None, ),  # 9
+        None,  # 10
+        None,  # 11
+        None,  # 12
+        None,  # 13
+        None,  # 14
+        (15, TType.STRING, 'declinedReason', 'UTF8', None, ),  # 15
+        None,  # 16
+        None,  # 17
+        (18, TType.I64, 'requestCreationTime', None, None, ),  # 18
+        (19, TType.STRING, 'requesterUsername', 'UTF8', None, ),  # 19
+    )
+
+    def __init__(self, tenantId=None, tenantApprovalStatus=None, tenantName=None, domain=None,
emailAddress=None, tenantAcronym=None, tenantURL=None, tenantPublicAbstract=None, reviewProposalDescription=None,
declinedReason=None, requestCreationTime=None, requesterUsername=None,):
+        self.tenantId = tenantId
+        self.tenantApprovalStatus = tenantApprovalStatus
+        self.tenantName = tenantName
+        self.domain = domain
+        self.emailAddress = emailAddress
+        self.tenantAcronym = tenantAcronym
+        self.tenantURL = tenantURL
+        self.tenantPublicAbstract = tenantPublicAbstract
+        self.reviewProposalDescription = reviewProposalDescription
+        self.declinedReason = declinedReason
+        self.requestCreationTime = requestCreationTime
+        self.requesterUsername = requesterUsername
+
+    def read(self, iprot):
+        if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec is not None:
+            iprot._fast_decode(self, iprot, (self.__class__, self.thrift_spec))
+            return
+        iprot.readStructBegin()
+        while True:
+            (fname, ftype, fid) = iprot.readFieldBegin()
+            if ftype == TType.STOP:
+                break
+            if fid == 1:
+                if ftype == TType.STRING:
+                    self.tenantId = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 2:
+                if ftype == TType.I32:
+                    self.tenantApprovalStatus = iprot.readI32()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 3:
+                if ftype == TType.STRING:
+                    self.tenantName = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 4:
+                if ftype == TType.STRING:
+                    self.domain = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 5:
+                if ftype == TType.STRING:
+                    self.emailAddress = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 6:
+                if ftype == TType.STRING:
+                    self.tenantAcronym = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 7:
+                if ftype == TType.STRING:
+                    self.tenantURL = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 8:
+                if ftype == TType.STRING:
+                    self.tenantPublicAbstract = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 9:
+                if ftype == TType.STRING:
+                    self.reviewProposalDescription = iprot.readString().decode('utf-8') if
sys.version_info[0] == 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 15:
+                if ftype == TType.STRING:
+                    self.declinedReason = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 18:
+                if ftype == TType.I64:
+                    self.requestCreationTime = iprot.readI64()
+                else:
+                    iprot.skip(ftype)
+            elif fid == 19:
+                if ftype == TType.STRING:
+                    self.requesterUsername = iprot.readString().decode('utf-8') if sys.version_info[0]
== 2 else iprot.readString()
+                else:
+                    iprot.skip(ftype)
+            else:
+                iprot.skip(ftype)
+            iprot.readFieldEnd()
+        iprot.readStructEnd()
+
+    def write(self, oprot):
+        if oprot._fast_encode is not None and self.thrift_spec is not None:
+            oprot.trans.write(oprot._fast_encode(self, (self.__class__, self.thrift_spec)))
+            return
+        oprot.writeStructBegin('Tenant')
+        if self.tenantId is not None:
+            oprot.writeFieldBegin('tenantId', TType.STRING, 1)
+            oprot.writeString(self.tenantId.encode('utf-8') if sys.version_info[0] == 2 else
self.tenantId)
+            oprot.writeFieldEnd()
+        if self.tenantApprovalStatus is not None:
+            oprot.writeFieldBegin('tenantApprovalStatus', TType.I32, 2)
+            oprot.writeI32(self.tenantApprovalStatus)
+            oprot.writeFieldEnd()
+        if self.tenantName is not None:
+            oprot.writeFieldBegin('tenantName', TType.STRING, 3)
+            oprot.writeString(self.tenantName.encode('utf-8') if sys.version_info[0] == 2
else self.tenantName)
+            oprot.writeFieldEnd()
+        if self.domain is not None:
+            oprot.writeFieldBegin('domain', TType.STRING, 4)
+            oprot.writeString(self.domain.encode('utf-8') if sys.version_info[0] == 2 else
self.domain)
+            oprot.writeFieldEnd()
+        if self.emailAddress is not None:
+            oprot.writeFieldBegin('emailAddress', TType.STRING, 5)
+            oprot.writeString(self.emailAddress.encode('utf-8') if sys.version_info[0] ==
2 else self.emailAddress)
+            oprot.writeFieldEnd()
+        if self.tenantAcronym is not None:
+            oprot.writeFieldBegin('tenantAcronym', TType.STRING, 6)
+            oprot.writeString(self.tenantAcronym.encode('utf-8') if sys.version_info[0] ==
2 else self.tenantAcronym)
+            oprot.writeFieldEnd()
+        if self.tenantURL is not None:
+            oprot.writeFieldBegin('tenantURL', TType.STRING, 7)
+            oprot.writeString(self.tenantURL.encode('utf-8') if sys.version_info[0] == 2
else self.tenantURL)
+            oprot.writeFieldEnd()
+        if self.tenantPublicAbstract is not None:
+            oprot.writeFieldBegin('tenantPublicAbstract', TType.STRING, 8)
+            oprot.writeString(self.tenantPublicAbstract.encode('utf-8') if sys.version_info[0]
== 2 else self.tenantPublicAbstract)
+            oprot.writeFieldEnd()
+        if self.reviewProposalDescription is not None:
+            oprot.writeFieldBegin('reviewProposalDescription', TType.STRING, 9)
+            oprot.writeString(self.reviewProposalDescription.encode('utf-8') if sys.version_info[0]
== 2 else self.reviewProposalDescription)
+            oprot.writeFieldEnd()
+        if self.declinedReason is not None:
+            oprot.writeFieldBegin('declinedReason', TType.STRING, 15)
+            oprot.writeString(self.declinedReason.encode('utf-8') if sys.version_info[0]
== 2 else self.declinedReason)
+            oprot.writeFieldEnd()
+        if self.requestCreationTime is not None:
+            oprot.writeFieldBegin('requestCreationTime', TType.I64, 18)
+            oprot.writeI64(self.requestCreationTime)
+            oprot.writeFieldEnd()
+        if self.requesterUsername is not None:
+            oprot.writeFieldBegin('requesterUsername', TType.STRING, 19)
+            oprot.writeString(self.requesterUsername.encode('utf-8') if sys.version_info[0]
== 2 else self.requesterUsername)
+            oprot.writeFieldEnd()
+        oprot.writeFieldStop()
+        oprot.writeStructEnd()
+
+    def validate(self):
+        if self.tenantId is None:
+            raise TProtocolException(message='Required field tenantId is unset!')
+        if self.tenantApprovalStatus is None:
+            raise TProtocolException(message='Required field tenantApprovalStatus is unset!')
+        return
+
+    def __repr__(self):
+        L = ['%s=%r' % (key, value)
+             for key, value in self.__dict__.items()]
+        return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+    def __eq__(self, other):
+        return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+    def __ne__(self, other):
+        return not (self == other)

http://git-wip-us.apache.org/repos/asf/airavata/blob/14ff0916/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/ttypes.py
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/ttypes.py
b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/ttypes.py
index efe717c..b77af5f4 100644
--- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/ttypes.py
+++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/ttypes.py
@@ -1,12 +1,14 @@
 #
-# 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
 #
 #  options string: py
 #
 
-from thrift.Thrift import TType, TMessageType, TException, TApplicationException
+from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
+from thrift.protocol.TProtocol import TProtocolException
+import sys
 import apache.airavata.model.commons.ttypes
 import apache.airavata.model.workspace.ttypes
 import apache.airavata.api.error.ttypes
@@ -26,12 +28,4 @@ import apache.airavata.model.group.ttypes
 import apache.airavata.model.tenant.ttypes
 import credential_store_data_models.ttypes
 
-
 from thrift.transport import TTransport
-from thrift.protocol import TBinaryProtocol, TProtocol
-try:
-  from thrift.protocol import fastbinary
-except:
-  fastbinary = None
-
-

http://git-wip-us.apache.org/repos/asf/airavata/blob/14ff0916/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/user/constants.py
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/user/constants.py
b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/user/constants.py
index e3e9481..fcc6e7c 100644
--- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/user/constants.py
+++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/user/constants.py
@@ -1,12 +1,13 @@
 #
-# 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
 #
 #  options string: py
 #
 
-from thrift.Thrift import TType, TMessageType, TException, TApplicationException
-from ttypes import *
-
+from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
+from thrift.protocol.TProtocol import TProtocolException
+import sys
+from .ttypes import *
 USER_PROFILE_VERSION = "1.0"


Mime
View raw message