Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B3CA1200D08 for ; Thu, 21 Sep 2017 18:59:35 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B19F7160BF2; Thu, 21 Sep 2017 16:59:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 409531609EC for ; Thu, 21 Sep 2017 18:59:33 +0200 (CEST) Received: (qmail 46971 invoked by uid 500); 21 Sep 2017 16:59:32 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 46599 invoked by uid 99); 21 Sep 2017 16:59:32 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Sep 2017 16:59:32 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4F600F5A59; Thu, 21 Sep 2017 16:59:31 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: machristie@apache.org To: commits@airavata.apache.org Date: Thu, 21 Sep 2017 16:59:41 -0000 Message-Id: <397c519b23d0431590fb9be62bff9cfb@git.apache.org> In-Reply-To: <3280c192490340b6b8d2da14c05c8f71@git.apache.org> References: <3280c192490340b6b8d2da14c05c8f71@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [11/54] [abbrv] [partial] airavata-django-portal git commit: Moving admin_view JS into django app and moving django project back archived-at: Thu, 21 Sep 2017 16:59:35 -0000 http://git-wip-us.apache.org/repos/asf/airavata-django-portal/blob/d8d7c37a/django_portal/apache/airavata/model/security/__init__.py ---------------------------------------------------------------------- diff --git a/django_portal/apache/airavata/model/security/__init__.py b/django_portal/apache/airavata/model/security/__init__.py deleted file mode 100644 index adefd8e..0000000 --- a/django_portal/apache/airavata/model/security/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__all__ = ['ttypes', 'constants'] http://git-wip-us.apache.org/repos/asf/airavata-django-portal/blob/d8d7c37a/django_portal/apache/airavata/model/security/constants.py ---------------------------------------------------------------------- diff --git a/django_portal/apache/airavata/model/security/constants.py b/django_portal/apache/airavata/model/security/constants.py deleted file mode 100644 index eb0d35a..0000000 --- a/django_portal/apache/airavata/model/security/constants.py +++ /dev/null @@ -1,12 +0,0 @@ -# -# 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, TFrozenDict, TException, TApplicationException -from thrift.protocol.TProtocol import TProtocolException -import sys -from .ttypes import * http://git-wip-us.apache.org/repos/asf/airavata-django-portal/blob/d8d7c37a/django_portal/apache/airavata/model/security/ttypes.py ---------------------------------------------------------------------- diff --git a/django_portal/apache/airavata/model/security/ttypes.py b/django_portal/apache/airavata/model/security/ttypes.py deleted file mode 100644 index 596f6ed..0000000 --- a/django_portal/apache/airavata/model/security/ttypes.py +++ /dev/null @@ -1,97 +0,0 @@ -# -# 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, TFrozenDict, TException, TApplicationException -from thrift.protocol.TProtocol import TProtocolException -import sys - -from thrift.transport import TTransport - - -class AuthzToken(object): - """ - Attributes: - - accessToken - - claimsMap - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'accessToken', 'UTF8', None, ), # 1 - (2, TType.MAP, 'claimsMap', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2 - ) - - def __init__(self, accessToken=None, claimsMap=None,): - self.accessToken = accessToken - self.claimsMap = claimsMap - - 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.accessToken = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.MAP: - self.claimsMap = {} - (_ktype1, _vtype2, _size0) = iprot.readMapBegin() - for _i4 in range(_size0): - _key5 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val6 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - self.claimsMap[_key5] = _val6 - iprot.readMapEnd() - 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('AuthzToken') - if self.accessToken is not None: - oprot.writeFieldBegin('accessToken', TType.STRING, 1) - oprot.writeString(self.accessToken.encode('utf-8') if sys.version_info[0] == 2 else self.accessToken) - oprot.writeFieldEnd() - if self.claimsMap is not None: - oprot.writeFieldBegin('claimsMap', TType.MAP, 2) - oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.claimsMap)) - for kiter7, viter8 in self.claimsMap.items(): - oprot.writeString(kiter7.encode('utf-8') if sys.version_info[0] == 2 else kiter7) - oprot.writeString(viter8.encode('utf-8') if sys.version_info[0] == 2 else viter8) - oprot.writeMapEnd() - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.accessToken is None: - raise TProtocolException(message='Required field accessToken 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-django-portal/blob/d8d7c37a/django_portal/apache/airavata/model/sharing/__init__.py ---------------------------------------------------------------------- diff --git a/django_portal/apache/airavata/model/sharing/__init__.py b/django_portal/apache/airavata/model/sharing/__init__.py deleted file mode 100644 index adefd8e..0000000 --- a/django_portal/apache/airavata/model/sharing/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__all__ = ['ttypes', 'constants'] http://git-wip-us.apache.org/repos/asf/airavata-django-portal/blob/d8d7c37a/django_portal/apache/airavata/model/sharing/constants.py ---------------------------------------------------------------------- diff --git a/django_portal/apache/airavata/model/sharing/constants.py b/django_portal/apache/airavata/model/sharing/constants.py deleted file mode 100644 index f4184ce..0000000 --- a/django_portal/apache/airavata/model/sharing/constants.py +++ /dev/null @@ -1,13 +0,0 @@ -# -# 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, TFrozenDict, TException, TApplicationException -from thrift.protocol.TProtocol import TProtocolException -import sys -from .ttypes import * -DO_NOT_SET_AT_CLIENTS_ID = "DO_NOT_SET_AT_CLIENTS_ID" http://git-wip-us.apache.org/repos/asf/airavata-django-portal/blob/d8d7c37a/django_portal/apache/airavata/model/sharing/ttypes.py ---------------------------------------------------------------------- diff --git a/django_portal/apache/airavata/model/sharing/ttypes.py b/django_portal/apache/airavata/model/sharing/ttypes.py deleted file mode 100644 index c1d6071..0000000 --- a/django_portal/apache/airavata/model/sharing/ttypes.py +++ /dev/null @@ -1,1612 +0,0 @@ -# -# 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, TFrozenDict, TException, TApplicationException -from thrift.protocol.TProtocol import TProtocolException -import sys - -from thrift.transport import TTransport - - -class GroupCardinality(object): - """ -

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

- - """ - SINGLE_USER = 0 - MULTI_USER = 1 - - _VALUES_TO_NAMES = { - 0: "SINGLE_USER", - 1: "MULTI_USER", - } - - _NAMES_TO_VALUES = { - "SINGLE_USER": 0, - "MULTI_USER": 1, - } - - -class GroupType(object): - """ -

Group types can be either user level or domain level groups.

- - """ - DOMAIN_LEVEL_GROUP = 0 - USER_LEVEL_GROUP = 1 - - _VALUES_TO_NAMES = { - 0: "DOMAIN_LEVEL_GROUP", - 1: "USER_LEVEL_GROUP", - } - - _NAMES_TO_VALUES = { - "DOMAIN_LEVEL_GROUP": 0, - "USER_LEVEL_GROUP": 1, - } - - -class GroupChildType(object): - """ -

System internal data type to match group child types

- - """ - USER = 0 - GROUP = 1 - - _VALUES_TO_NAMES = { - 0: "USER", - 1: "GROUP", - } - - _NAMES_TO_VALUES = { - "USER": 0, - "GROUP": 1, - } - - -class EntitySearchField(object): - """ -

This list of fields that can be used to search entities

-
  • NAME : Name of the entity
  • -
  • DESCRIPTION : Description of the entity
  • -
  • FULL_TEXT : Full text field of the entity
  • -
  • PARENT_ENTITY_ID : Parent entity id of the entity
  • -
  • OWNER_ID : Owner of the entity
  • -
  • CREATED_TIME : Created time of the entity
  • -
  • UPDATED_TIME : Updated time of the entity
  • -
  • SHARED_COUNT : Number of directly shared users and groups
  • - - """ - NAME = 0 - DESCRIPTION = 1 - FULL_TEXT = 2 - PARRENT_ENTITY_ID = 3 - OWNER_ID = 4 - PERMISSION_TYPE_ID = 5 - CREATED_TIME = 6 - UPDATED_TIME = 7 - ENTITY_TYPE_ID = 8 - SHARED_COUNT = 9 - - _VALUES_TO_NAMES = { - 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", - } - - _NAMES_TO_VALUES = { - "NAME": 0, - "DESCRIPTION": 1, - "FULL_TEXT": 2, - "PARRENT_ENTITY_ID": 3, - "OWNER_ID": 4, - "PERMISSION_TYPE_ID": 5, - "CREATED_TIME": 6, - "UPDATED_TIME": 7, - "ENTITY_TYPE_ID": 8, - "SHARED_COUNT": 9, - } - - -class SearchCondition(object): - """ -

    Different search operators that can be used with the entity search fields

    -
  • EQUAL : Simply matches for equality. Applicable for name, and parent entity id
  • -
  • LIKE : Check for the condition %$FIELD% condition. Applicable for name, and description
  • -
  • FULL_TEXT : Does a full text search. Only applicable for the FULL_TEXT field.
  • -
  • GTE : Greater than or equal. Only applicable for created time, updated time and shared count.
  • -
  • LTE : Less than or equal. Only applicable for created time, updated time and shared count.
  • - - """ - EQUAL = 0 - LIKE = 1 - FULL_TEXT = 2 - GTE = 3 - LTE = 4 - NOT = 5 - - _VALUES_TO_NAMES = { - 0: "EQUAL", - 1: "LIKE", - 2: "FULL_TEXT", - 3: "GTE", - 4: "LTE", - 5: "NOT", - } - - _NAMES_TO_VALUES = { - "EQUAL": 0, - "LIKE": 1, - "FULL_TEXT": 2, - "GTE": 3, - "LTE": 4, - "NOT": 5, - } - - -class SharingType(object): - """ -

    This is an internal enum type for managing sharings

    - - """ - DIRECT_NON_CASCADING = 0 - DIRECT_CASCADING = 1 - INDIRECT_CASCADING = 2 - - _VALUES_TO_NAMES = { - 0: "DIRECT_NON_CASCADING", - 1: "DIRECT_CASCADING", - 2: "INDIRECT_CASCADING", - } - - _NAMES_TO_VALUES = { - "DIRECT_NON_CASCADING": 0, - "DIRECT_CASCADING": 1, - "INDIRECT_CASCADING": 2, - } - - -class Domain(object): - """ -

    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

    -
  • domainId : Will be generated by the server based on the domain name
  • -
  • name : A single word name that identifies the domain e.g seagrid, ultrascan
  • -
  • description : A short description for the domain
  • -
  • createdTime : Will be set by the system
  • -
  • updatedTime : Will be set by the system
  • - - - Attributes: - - domainId - - name - - description - - createdTime - - updatedTime - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'domainId', 'UTF8', "DO_NOT_SET_AT_CLIENTS_ID", ), # 1 - (2, TType.STRING, 'name', 'UTF8', None, ), # 2 - (3, TType.STRING, 'description', 'UTF8', None, ), # 3 - (4, TType.I64, 'createdTime', None, None, ), # 4 - (5, TType.I64, 'updatedTime', None, None, ), # 5 - ) - - def __init__(self, domainId=thrift_spec[1][4], name=None, description=None, createdTime=None, updatedTime=None,): - self.domainId = domainId - self.name = name - self.description = description - self.createdTime = createdTime - self.updatedTime = updatedTime - - 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.domainId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.description = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I64: - self.createdTime = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I64: - self.updatedTime = iprot.readI64() - 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('Domain') - if self.domainId is not None: - oprot.writeFieldBegin('domainId', TType.STRING, 1) - oprot.writeString(self.domainId.encode('utf-8') if sys.version_info[0] == 2 else self.domainId) - oprot.writeFieldEnd() - if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 2) - oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) - oprot.writeFieldEnd() - if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 3) - oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) - oprot.writeFieldEnd() - if self.createdTime is not None: - oprot.writeFieldBegin('createdTime', TType.I64, 4) - oprot.writeI64(self.createdTime) - oprot.writeFieldEnd() - if self.updatedTime is not None: - oprot.writeFieldBegin('updatedTime', TType.I64, 5) - oprot.writeI64(self.updatedTime) - 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 User(object): - """ -

    User is the model used to register a user in the system. Minimal user information will be required to provide - regarding the user.

    -
  • userId : User id provided by the client
  • -
  • domainId : Domain id for that user
  • -
  • userName : User name for the user
  • -
  • firstName : First name of the user
  • -
  • lastName : Last name of the user
  • -
  • email : Email address of the user
  • -
  • icon : A binary field for storing the user icon
  • -
  • createdTime : If client provides this value then the system will use it if not the current time will be set
  • -
  • updatedTime : If client provides this value then the system will use it if not the current time will be set
  • - - - Attributes: - - userId - - domainId - - userName - - firstName - - lastName - - email - - icon - - createdTime - - updatedTime - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'userId', 'UTF8', None, ), # 1 - (2, TType.STRING, 'domainId', 'UTF8', None, ), # 2 - (3, TType.STRING, 'userName', 'UTF8', None, ), # 3 - (4, TType.STRING, 'firstName', 'UTF8', None, ), # 4 - (5, TType.STRING, 'lastName', 'UTF8', None, ), # 5 - (6, TType.STRING, 'email', 'UTF8', None, ), # 6 - (7, TType.STRING, 'icon', 'BINARY', None, ), # 7 - (8, TType.I64, 'createdTime', None, None, ), # 8 - (9, TType.I64, 'updatedTime', None, None, ), # 9 - ) - - def __init__(self, userId=None, domainId=None, userName=None, firstName=None, lastName=None, email=None, icon=None, createdTime=None, updatedTime=None,): - self.userId = userId - self.domainId = domainId - self.userName = userName - self.firstName = firstName - self.lastName = lastName - self.email = email - self.icon = icon - self.createdTime = createdTime - self.updatedTime = updatedTime - - 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.userId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.domainId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.userName = 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.firstName = 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.lastName = 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.email = 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.icon = iprot.readBinary() - else: - iprot.skip(ftype) - elif fid == 8: - if ftype == TType.I64: - self.createdTime = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 9: - if ftype == TType.I64: - self.updatedTime = iprot.readI64() - 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('User') - if self.userId is not None: - oprot.writeFieldBegin('userId', TType.STRING, 1) - oprot.writeString(self.userId.encode('utf-8') if sys.version_info[0] == 2 else self.userId) - oprot.writeFieldEnd() - if self.domainId is not None: - oprot.writeFieldBegin('domainId', TType.STRING, 2) - oprot.writeString(self.domainId.encode('utf-8') if sys.version_info[0] == 2 else self.domainId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 3) - oprot.writeString(self.userName.encode('utf-8') if sys.version_info[0] == 2 else self.userName) - oprot.writeFieldEnd() - if self.firstName is not None: - oprot.writeFieldBegin('firstName', TType.STRING, 4) - oprot.writeString(self.firstName.encode('utf-8') if sys.version_info[0] == 2 else self.firstName) - oprot.writeFieldEnd() - if self.lastName is not None: - oprot.writeFieldBegin('lastName', TType.STRING, 5) - oprot.writeString(self.lastName.encode('utf-8') if sys.version_info[0] == 2 else self.lastName) - oprot.writeFieldEnd() - if self.email is not None: - oprot.writeFieldBegin('email', TType.STRING, 6) - oprot.writeString(self.email.encode('utf-8') if sys.version_info[0] == 2 else self.email) - oprot.writeFieldEnd() - if self.icon is not None: - oprot.writeFieldBegin('icon', TType.STRING, 7) - oprot.writeBinary(self.icon) - oprot.writeFieldEnd() - if self.createdTime is not None: - oprot.writeFieldBegin('createdTime', TType.I64, 8) - oprot.writeI64(self.createdTime) - oprot.writeFieldEnd() - if self.updatedTime is not None: - oprot.writeFieldBegin('updatedTime', TType.I64, 9) - oprot.writeI64(self.updatedTime) - 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 UserGroup(object): - """ -

    User group is a collection of users.

    -
  • groupId : Group id provided by the client
  • -
  • domainId : Domain id for this user group
  • -
  • name : Name for the user group. should be one word
  • -
  • description : Short description for the group.
  • -
  • ownerId : Owner id of this group.
  • -
  • groupType : Group type (DOMAIN_LEVEL_GROUP, USER_LEVEL_GROUP)
  • -
  • groupCardinality : Group cardinality (SINGLE_USER, MULTI_USER)
  • -
  • createdTime : Will be set by the system
  • -
  • updatedTime : Will be set by the system
  • - - - Attributes: - - groupId - - domainId - - name - - description - - ownerId - - groupType - - groupCardinality - - createdTime - - updatedTime - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'groupId', 'UTF8', None, ), # 1 - (2, TType.STRING, 'domainId', 'UTF8', None, ), # 2 - (3, TType.STRING, 'name', 'UTF8', None, ), # 3 - (4, TType.STRING, 'description', 'UTF8', None, ), # 4 - (5, TType.STRING, 'ownerId', 'UTF8', None, ), # 5 - (6, TType.I32, 'groupType', None, None, ), # 6 - (7, TType.I32, 'groupCardinality', None, None, ), # 7 - (8, TType.I64, 'createdTime', None, None, ), # 8 - (9, TType.I64, 'updatedTime', None, None, ), # 9 - ) - - def __init__(self, groupId=None, domainId=None, name=None, description=None, ownerId=None, groupType=None, groupCardinality=None, createdTime=None, updatedTime=None,): - self.groupId = groupId - self.domainId = domainId - self.name = name - self.description = description - self.ownerId = ownerId - self.groupType = groupType - self.groupCardinality = groupCardinality - self.createdTime = createdTime - self.updatedTime = updatedTime - - 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.groupId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.domainId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.name = 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.description = 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.ownerId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.I32: - self.groupType = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 7: - if ftype == TType.I32: - self.groupCardinality = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 8: - if ftype == TType.I64: - self.createdTime = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 9: - if ftype == TType.I64: - self.updatedTime = iprot.readI64() - 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('UserGroup') - if self.groupId is not None: - oprot.writeFieldBegin('groupId', TType.STRING, 1) - oprot.writeString(self.groupId.encode('utf-8') if sys.version_info[0] == 2 else self.groupId) - oprot.writeFieldEnd() - if self.domainId is not None: - oprot.writeFieldBegin('domainId', TType.STRING, 2) - oprot.writeString(self.domainId.encode('utf-8') if sys.version_info[0] == 2 else self.domainId) - oprot.writeFieldEnd() - if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 3) - oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) - oprot.writeFieldEnd() - if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 4) - oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) - oprot.writeFieldEnd() - if self.ownerId is not None: - oprot.writeFieldBegin('ownerId', TType.STRING, 5) - oprot.writeString(self.ownerId.encode('utf-8') if sys.version_info[0] == 2 else self.ownerId) - oprot.writeFieldEnd() - if self.groupType is not None: - oprot.writeFieldBegin('groupType', TType.I32, 6) - oprot.writeI32(self.groupType) - oprot.writeFieldEnd() - if self.groupCardinality is not None: - oprot.writeFieldBegin('groupCardinality', TType.I32, 7) - oprot.writeI32(self.groupCardinality) - oprot.writeFieldEnd() - if self.createdTime is not None: - oprot.writeFieldBegin('createdTime', TType.I64, 8) - oprot.writeI64(self.createdTime) - oprot.writeFieldEnd() - if self.updatedTime is not None: - oprot.writeFieldBegin('updatedTime', TType.I64, 9) - oprot.writeI64(self.updatedTime) - 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 GroupMembership(object): - """ -

    System internal data type to map group memberships

    - - - Attributes: - - parentId - - childId - - domainId - - childType - - createdTime - - updatedTime - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'parentId', 'UTF8', None, ), # 1 - (2, TType.STRING, 'childId', 'UTF8', None, ), # 2 - (3, TType.STRING, 'domainId', 'UTF8', None, ), # 3 - (4, TType.I32, 'childType', None, None, ), # 4 - (5, TType.I64, 'createdTime', None, None, ), # 5 - (6, TType.I64, 'updatedTime', None, None, ), # 6 - ) - - def __init__(self, parentId=None, childId=None, domainId=None, childType=None, createdTime=None, updatedTime=None,): - self.parentId = parentId - self.childId = childId - self.domainId = domainId - self.childType = childType - self.createdTime = createdTime - self.updatedTime = updatedTime - - 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.parentId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.childId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.domainId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I32: - self.childType = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I64: - self.createdTime = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.I64: - self.updatedTime = iprot.readI64() - 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('GroupMembership') - if self.parentId is not None: - oprot.writeFieldBegin('parentId', TType.STRING, 1) - oprot.writeString(self.parentId.encode('utf-8') if sys.version_info[0] == 2 else self.parentId) - oprot.writeFieldEnd() - if self.childId is not None: - oprot.writeFieldBegin('childId', TType.STRING, 2) - oprot.writeString(self.childId.encode('utf-8') if sys.version_info[0] == 2 else self.childId) - oprot.writeFieldEnd() - if self.domainId is not None: - oprot.writeFieldBegin('domainId', TType.STRING, 3) - oprot.writeString(self.domainId.encode('utf-8') if sys.version_info[0] == 2 else self.domainId) - oprot.writeFieldEnd() - if self.childType is not None: - oprot.writeFieldBegin('childType', TType.I32, 4) - oprot.writeI32(self.childType) - oprot.writeFieldEnd() - if self.createdTime is not None: - oprot.writeFieldBegin('createdTime', TType.I64, 5) - oprot.writeI64(self.createdTime) - oprot.writeFieldEnd() - if self.updatedTime is not None: - oprot.writeFieldBegin('updatedTime', TType.I64, 6) - oprot.writeI64(self.updatedTime) - 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 EntityType(object): - """ -

    client defined entity types

    -
  • entityTypeId : Entity type id provided by the client
  • -
  • domainId : Domain id of the domain.
  • -
  • name : Name for the entity type. Should be a single word.
  • -
  • description : Short description for the entity type.
  • -
  • createdTime : Will be set by the system
  • -
  • updatedTime : Will be set by the system
  • - - - Attributes: - - entityTypeId - - domainId - - name - - description - - createdTime - - updatedTime - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'entityTypeId', 'UTF8', None, ), # 1 - (2, TType.STRING, 'domainId', 'UTF8', None, ), # 2 - (3, TType.STRING, 'name', 'UTF8', None, ), # 3 - (4, TType.STRING, 'description', 'UTF8', None, ), # 4 - (5, TType.I64, 'createdTime', None, None, ), # 5 - (6, TType.I64, 'updatedTime', None, None, ), # 6 - ) - - def __init__(self, entityTypeId=None, domainId=None, name=None, description=None, createdTime=None, updatedTime=None,): - self.entityTypeId = entityTypeId - self.domainId = domainId - self.name = name - self.description = description - self.createdTime = createdTime - self.updatedTime = updatedTime - - 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.entityTypeId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.domainId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.name = 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.description = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I64: - self.createdTime = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.I64: - self.updatedTime = iprot.readI64() - 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('EntityType') - if self.entityTypeId is not None: - oprot.writeFieldBegin('entityTypeId', TType.STRING, 1) - oprot.writeString(self.entityTypeId.encode('utf-8') if sys.version_info[0] == 2 else self.entityTypeId) - oprot.writeFieldEnd() - if self.domainId is not None: - oprot.writeFieldBegin('domainId', TType.STRING, 2) - oprot.writeString(self.domainId.encode('utf-8') if sys.version_info[0] == 2 else self.domainId) - oprot.writeFieldEnd() - if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 3) - oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) - oprot.writeFieldEnd() - if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 4) - oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) - oprot.writeFieldEnd() - if self.createdTime is not None: - oprot.writeFieldBegin('createdTime', TType.I64, 5) - oprot.writeI64(self.createdTime) - oprot.writeFieldEnd() - if self.updatedTime is not None: - oprot.writeFieldBegin('updatedTime', TType.I64, 6) - oprot.writeI64(self.updatedTime) - 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 SearchCriteria(object): - """ -

    Container object for search criteria

    -
  • searchField : Entity search field
  • -
  • value : Search value
  • -
  • searchCondition : EQUAL, LIKE etc..
  • - - - Attributes: - - searchField - - value - - searchCondition - """ - - thrift_spec = ( - None, # 0 - (1, TType.I32, 'searchField', None, None, ), # 1 - (2, TType.STRING, 'value', 'UTF8', None, ), # 2 - (3, TType.I32, 'searchCondition', None, None, ), # 3 - ) - - def __init__(self, searchField=None, value=None, searchCondition=None,): - self.searchField = searchField - self.value = value - self.searchCondition = searchCondition - - 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.I32: - self.searchField = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.value = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I32: - self.searchCondition = iprot.readI32() - 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('SearchCriteria') - if self.searchField is not None: - oprot.writeFieldBegin('searchField', TType.I32, 1) - oprot.writeI32(self.searchField) - oprot.writeFieldEnd() - if self.value is not None: - oprot.writeFieldBegin('value', TType.STRING, 2) - oprot.writeString(self.value.encode('utf-8') if sys.version_info[0] == 2 else self.value) - oprot.writeFieldEnd() - if self.searchCondition is not None: - oprot.writeFieldBegin('searchCondition', TType.I32, 3) - oprot.writeI32(self.searchCondition) - 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 Entity(object): - """ -

    Entity object which is used to register an entity in the system.

    -
  • entityId : Entity id provided by the client
  • -
  • domainId : Domain id
  • -
  • entityTypeId : Entity type id
  • -
  • ownerId : Owner id
  • -
  • parentEntityId : Parent entity id
  • -
  • name : Name
  • -
  • description : Short description for the entity
  • -
  • binaryData : Any information stored in binary format
  • -
  • fullText : A string which will be considered for full text search
  • -
  • originalEntityCreationTime : When registering old records what is the original entity creation time. If not - set will be default to current time
  • -
  • createdTime : Will be set by the system
  • -
  • updatedTime : Will be set by the system
  • - - - Attributes: - - entityId - - domainId - - entityTypeId - - ownerId - - parentEntityId - - name - - description - - binaryData - - fullText - - sharedCount - - originalEntityCreationTime - - createdTime - - updatedTime - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'entityId', 'UTF8', None, ), # 1 - (2, TType.STRING, 'domainId', 'UTF8', None, ), # 2 - (3, TType.STRING, 'entityTypeId', 'UTF8', None, ), # 3 - (4, TType.STRING, 'ownerId', 'UTF8', None, ), # 4 - (5, TType.STRING, 'parentEntityId', 'UTF8', None, ), # 5 - (6, TType.STRING, 'name', 'UTF8', None, ), # 6 - (7, TType.STRING, 'description', 'UTF8', None, ), # 7 - (8, TType.STRING, 'binaryData', 'BINARY', None, ), # 8 - (9, TType.STRING, 'fullText', 'UTF8', None, ), # 9 - (10, TType.I64, 'sharedCount', None, 0, ), # 10 - (11, TType.I64, 'originalEntityCreationTime', None, None, ), # 11 - (12, TType.I64, 'createdTime', None, None, ), # 12 - (13, TType.I64, 'updatedTime', None, None, ), # 13 - ) - - def __init__(self, entityId=None, domainId=None, entityTypeId=None, ownerId=None, parentEntityId=None, name=None, description=None, binaryData=None, fullText=None, sharedCount=thrift_spec[10][4], originalEntityCreationTime=None, createdTime=None, updatedTime=None,): - self.entityId = entityId - self.domainId = domainId - self.entityTypeId = entityTypeId - self.ownerId = ownerId - self.parentEntityId = parentEntityId - self.name = name - self.description = description - self.binaryData = binaryData - self.fullText = fullText - self.sharedCount = sharedCount - self.originalEntityCreationTime = originalEntityCreationTime - self.createdTime = createdTime - self.updatedTime = updatedTime - - 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.entityId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.domainId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.entityTypeId = 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.ownerId = 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.parentEntityId = 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.name = 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.description = 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.binaryData = iprot.readBinary() - else: - iprot.skip(ftype) - elif fid == 9: - if ftype == TType.STRING: - self.fullText = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 10: - if ftype == TType.I64: - self.sharedCount = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 11: - if ftype == TType.I64: - self.originalEntityCreationTime = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 12: - if ftype == TType.I64: - self.createdTime = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 13: - if ftype == TType.I64: - self.updatedTime = iprot.readI64() - 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('Entity') - if self.entityId is not None: - oprot.writeFieldBegin('entityId', TType.STRING, 1) - oprot.writeString(self.entityId.encode('utf-8') if sys.version_info[0] == 2 else self.entityId) - oprot.writeFieldEnd() - if self.domainId is not None: - oprot.writeFieldBegin('domainId', TType.STRING, 2) - oprot.writeString(self.domainId.encode('utf-8') if sys.version_info[0] == 2 else self.domainId) - oprot.writeFieldEnd() - if self.entityTypeId is not None: - oprot.writeFieldBegin('entityTypeId', TType.STRING, 3) - oprot.writeString(self.entityTypeId.encode('utf-8') if sys.version_info[0] == 2 else self.entityTypeId) - oprot.writeFieldEnd() - if self.ownerId is not None: - oprot.writeFieldBegin('ownerId', TType.STRING, 4) - oprot.writeString(self.ownerId.encode('utf-8') if sys.version_info[0] == 2 else self.ownerId) - oprot.writeFieldEnd() - if self.parentEntityId is not None: - oprot.writeFieldBegin('parentEntityId', TType.STRING, 5) - oprot.writeString(self.parentEntityId.encode('utf-8') if sys.version_info[0] == 2 else self.parentEntityId) - oprot.writeFieldEnd() - if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 6) - oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) - oprot.writeFieldEnd() - if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 7) - oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) - oprot.writeFieldEnd() - if self.binaryData is not None: - oprot.writeFieldBegin('binaryData', TType.STRING, 8) - oprot.writeBinary(self.binaryData) - oprot.writeFieldEnd() - if self.fullText is not None: - oprot.writeFieldBegin('fullText', TType.STRING, 9) - oprot.writeString(self.fullText.encode('utf-8') if sys.version_info[0] == 2 else self.fullText) - oprot.writeFieldEnd() - if self.sharedCount is not None: - oprot.writeFieldBegin('sharedCount', TType.I64, 10) - oprot.writeI64(self.sharedCount) - oprot.writeFieldEnd() - if self.originalEntityCreationTime is not None: - oprot.writeFieldBegin('originalEntityCreationTime', TType.I64, 11) - oprot.writeI64(self.originalEntityCreationTime) - oprot.writeFieldEnd() - if self.createdTime is not None: - oprot.writeFieldBegin('createdTime', TType.I64, 12) - oprot.writeI64(self.createdTime) - oprot.writeFieldEnd() - if self.updatedTime is not None: - oprot.writeFieldBegin('updatedTime', TType.I64, 13) - oprot.writeI64(self.updatedTime) - 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 PermissionType(object): - """ -

    Object for creating client defined permission type

    -
  • permissionTypeId : Permission type id provided by the client
  • -
  • domainId : Domain id
  • -
  • name : Single word name for the permission
  • -
  • description : Short description for the permission type
  • -
  • createdTime : Will be set by the system
  • -
  • updatedTime : Will be set by the system
  • - - - Attributes: - - permissionTypeId - - domainId - - name - - description - - createdTime - - updatedTime - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'permissionTypeId', 'UTF8', None, ), # 1 - (2, TType.STRING, 'domainId', 'UTF8', None, ), # 2 - (3, TType.STRING, 'name', 'UTF8', None, ), # 3 - (4, TType.STRING, 'description', 'UTF8', None, ), # 4 - (5, TType.I64, 'createdTime', None, None, ), # 5 - (6, TType.I64, 'updatedTime', None, None, ), # 6 - ) - - def __init__(self, permissionTypeId=None, domainId=None, name=None, description=None, createdTime=None, updatedTime=None,): - self.permissionTypeId = permissionTypeId - self.domainId = domainId - self.name = name - self.description = description - self.createdTime = createdTime - self.updatedTime = updatedTime - - 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.permissionTypeId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.domainId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.name = 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.description = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I64: - self.createdTime = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.I64: - self.updatedTime = iprot.readI64() - 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('PermissionType') - if self.permissionTypeId is not None: - oprot.writeFieldBegin('permissionTypeId', TType.STRING, 1) - oprot.writeString(self.permissionTypeId.encode('utf-8') if sys.version_info[0] == 2 else self.permissionTypeId) - oprot.writeFieldEnd() - if self.domainId is not None: - oprot.writeFieldBegin('domainId', TType.STRING, 2) - oprot.writeString(self.domainId.encode('utf-8') if sys.version_info[0] == 2 else self.domainId) - oprot.writeFieldEnd() - if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 3) - oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) - oprot.writeFieldEnd() - if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 4) - oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) - oprot.writeFieldEnd() - if self.createdTime is not None: - oprot.writeFieldBegin('createdTime', TType.I64, 5) - oprot.writeI64(self.createdTime) - oprot.writeFieldEnd() - if self.updatedTime is not None: - oprot.writeFieldBegin('updatedTime', TType.I64, 6) - oprot.writeI64(self.updatedTime) - 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 Sharing(object): - """ -

    This is an internal enum type for managing sharings

    - - - Attributes: - - permissionTypeId - - entityId - - groupId - - sharingType - - domainId - - inheritedParentId - - createdTime - - updatedTime - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'permissionTypeId', 'UTF8', None, ), # 1 - (2, TType.STRING, 'entityId', 'UTF8', None, ), # 2 - (3, TType.STRING, 'groupId', 'UTF8', None, ), # 3 - (4, TType.I32, 'sharingType', None, None, ), # 4 - (5, TType.STRING, 'domainId', 'UTF8', None, ), # 5 - (6, TType.STRING, 'inheritedParentId', 'UTF8', None, ), # 6 - (7, TType.I64, 'createdTime', None, None, ), # 7 - (8, TType.I64, 'updatedTime', None, None, ), # 8 - ) - - def __init__(self, permissionTypeId=None, entityId=None, groupId=None, sharingType=None, domainId=None, inheritedParentId=None, createdTime=None, updatedTime=None,): - self.permissionTypeId = permissionTypeId - self.entityId = entityId - self.groupId = groupId - self.sharingType = sharingType - self.domainId = domainId - self.inheritedParentId = inheritedParentId - self.createdTime = createdTime - self.updatedTime = updatedTime - - 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.permissionTypeId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.entityId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.groupId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I32: - self.sharingType = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRING: - self.domainId = 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.inheritedParentId = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - else: - iprot.skip(ftype) - elif fid == 7: - if ftype == TType.I64: - self.createdTime = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 8: - if ftype == TType.I64: - self.updatedTime = iprot.readI64() - 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('Sharing') - if self.permissionTypeId is not None: - oprot.writeFieldBegin('permissionTypeId', TType.STRING, 1) - oprot.writeString(self.permissionTypeId.encode('utf-8') if sys.version_info[0] == 2 else self.permissionTypeId) - oprot.writeFieldEnd() - if self.entityId is not None: - oprot.writeFieldBegin('entityId', TType.STRING, 2) - oprot.writeString(self.entityId.encode('utf-8') if sys.version_info[0] == 2 else self.entityId) - oprot.writeFieldEnd() - if self.groupId is not None: - oprot.writeFieldBegin('groupId', TType.STRING, 3) - oprot.writeString(self.groupId.encode('utf-8') if sys.version_info[0] == 2 else self.groupId) - oprot.writeFieldEnd() - if self.sharingType is not None: - oprot.writeFieldBegin('sharingType', TType.I32, 4) - oprot.writeI32(self.sharingType) - oprot.writeFieldEnd() - if self.domainId is not None: - oprot.writeFieldBegin('domainId', TType.STRING, 5) - oprot.writeString(self.domainId.encode('utf-8') if sys.version_info[0] == 2 else self.domainId) - oprot.writeFieldEnd() - if self.inheritedParentId is not None: - oprot.writeFieldBegin('inheritedParentId', TType.STRING, 6) - oprot.writeString(self.inheritedParentId.encode('utf-8') if sys.version_info[0] == 2 else self.inheritedParentId) - oprot.writeFieldEnd() - if self.createdTime is not None: - oprot.writeFieldBegin('createdTime', TType.I64, 7) - oprot.writeI64(self.createdTime) - oprot.writeFieldEnd() - if self.updatedTime is not None: - oprot.writeFieldBegin('updatedTime', TType.I64, 8) - oprot.writeI64(self.updatedTime) - 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 SharingRegistryException(TException): - """ -

    Exception model used in the sharing registry service

    - - - Attributes: - - message - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'message', 'UTF8', None, ), # 1 - ) - - def __init__(self, message=None,): - self.message = message - - 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.message = 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('SharingRegistryException') - if self.message is not None: - oprot.writeFieldBegin('message', TType.STRING, 1) - oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.message is None: - raise TProtocolException(message='Required field message is unset!') - return - - def __str__(self): - return repr(self) - - 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 DuplicateEntryException(TException): - """ - This exception is thrown when you try to save a duplicate entity that already exists - in the database. - - message: contains the associated error message - - - Attributes: - - message - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'message', 'UTF8', None, ), # 1 - ) - - def __init__(self, message=None,): - self.message = message - - 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.message = 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('DuplicateEntryException') - if self.message is not None: - oprot.writeFieldBegin('message', TType.STRING, 1) - oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.message is None: - raise TProtocolException(message='Required field message is unset!') - return - - def __str__(self): - return repr(self) - - 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-django-portal/blob/d8d7c37a/django_portal/apache/airavata/model/status/__init__.py ---------------------------------------------------------------------- diff --git a/django_portal/apache/airavata/model/status/__init__.py b/django_portal/apache/airavata/model/status/__init__.py deleted file mode 100644 index adefd8e..0000000 --- a/django_portal/apache/airavata/model/status/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__all__ = ['ttypes', 'constants'] http://git-wip-us.apache.org/repos/asf/airavata-django-portal/blob/d8d7c37a/django_portal/apache/airavata/model/status/constants.py ---------------------------------------------------------------------- diff --git a/django_portal/apache/airavata/model/status/constants.py b/django_portal/apache/airavata/model/status/constants.py deleted file mode 100644 index eb0d35a..0000000 --- a/django_portal/apache/airavata/model/status/constants.py +++ /dev/null @@ -1,12 +0,0 @@ -# -# 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, TFrozenDict, TException, TApplicationException -from thrift.protocol.TProtocol import TProtocolException -import sys -from .ttypes import *