def get_rbu(self): rbu = ResourceBuilder("ldap_connection") rbu.add_field('identifier', required=True) rbu.add_field('providerUrl', required=True) rbu.add_field('securityPrincipal', "principal") rbu.add_field('securityCredentials', "credential") return rbu
def get_rbu_user(self): rbu = ResourceBuilder("GenericUserDto") rbu.add_field('mail') rbu.add_field('uuid') rbu.add_field('domain') rbu.add_field('firstName') rbu.add_field('lastName') return rbu
def get_rbu(self): rbu = ResourceBuilder("contactslist") rbu.add_field('uuid') rbu.add_field('name', required=True) rbu.add_field('public', value=False) rbu.add_field('owner', extended=True) rbu.add_field('description', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("users") rbu.add_field('uuid') rbu.add_field('mail') rbu.add_field('firstName') rbu.add_field('lastName') rbu.add_field('domain') rbu.add_field('role') rbu.add_field('accountType', extended=True) rbu.add_field('locale', extended=True) rbu.add_field('externalMailLocale') rbu.add_field('creationDate') rbu.add_field('modificationDate') rbu.add_field('canUpload', extended=True) rbu.add_field('canCreateGuest', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("thread_members") rbu.add_field('userUuid') rbu.add_field('firstName') rbu.add_field('lastName') rbu.add_field('userMail', required=True) rbu.add_field('role') rbu.add_field('admin', extended=True) rbu.add_field('readonly', extended=True) # rbu.add_field('id', extended=True) rbu.add_field('userDomainId', extended=True) rbu.add_field('threadUuid', required=True, extended=True) return rbu
def get_rbu(self): # pylint: disable=R0201 rbu = ResourceBuilder("generic") return rbu
def get_rbu(self): rbu = ResourceBuilder("domains") rbu.add_field('identifier', required=True) rbu.add_field('label', required=True) rbu.add_field('policy', value={"identifier": "DefaultDomainPolicy"}, hidden=True) rbu.add_field('type', "domain_type", value="TOPDOMAIN") rbu.add_field('parent', "parent_id") rbu.add_field('language', value="ENGLISH") rbu.add_field('externalMailLocale', value="ENGLISH") rbu.add_field('userRole', "role", value="SIMPLE") rbu.add_field('mailConfigUuid', value="946b190d-4c95-485f-bfe6-d288a2de1edd", extended=True) rbu.add_field('mimePolicyUuid', value="3d6d8800-e0f7-11e3-8ec0-080027c0eef0", extended=True) rbu.add_field('description', value="") rbu.add_field('authShowOrder', value="1", extended=True) rbu.add_field('providers', value=[], extended=True) rbu.add_field('currentWelcomeMessage', value={'uuid': "4bc57114-c8c9-11e4-a859-37b5db95d856"}, extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("contactslist") rbu.add_field('uuid') rbu.add_field('identifier', required=True) rbu.add_field('public', value=False) rbu.add_field('owner', extended=True) rbu.add_field('domainId', extended=True) rbu.add_field('description', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("documents") rbu.add_field('name') rbu.add_field('size') rbu.add_field('uuid') rbu.add_field('creationDate') rbu.add_field('modificationDate') rbu.add_field('type', extended=True) rbu.add_field('expirationDate', extended=True) rbu.add_field('ciphered', extended=True) rbu.add_field('description', extended=True) rbu.add_field('sha256sum', extended=True) rbu.add_field('metaData', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("welcome_messages") rbu.add_field('uuid', required=True) rbu.add_field('name', required=True) rbu.add_field('modificationDate') rbu.add_field('creationDate') rbu.add_field('welcomeMessagesEntries', extended=True) rbu.add_field('description', extended=True) rbu.add_field( 'myDomain', value={ 'identifier':'LinShareRootDomain', }, arg="domain", extended=False, required=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("domains") rbu.add_field('identifier', required=True) rbu.add_field('label', required=True) rbu.add_field('policy', value={"identifier": "DefaultDomainPolicy"}, hidden=True) rbu.add_field('type', "domain_type", value="TOPDOMAIN") rbu.add_field('parent', "parent_id", extended=True) rbu.add_field('language', value="ENGLISH", extended=True) rbu.add_field('externalMailLocale', value="ENGLISH", extended=True) rbu.add_field('userRole', "role", value="SIMPLE") rbu.add_field('mailConfigUuid', value="946b190d-4c95-485f-bfe6-d288a2de1edd", extended=True) rbu.add_field('mimePolicyUuid', value="3d6d8800-e0f7-11e3-8ec0-080027c0eef0", extended=True) rbu.add_field('description', value="", extended=True) rbu.add_field('authShowOrder', value="1", extended=True) rbu.add_field('providers', value=[], extended=True) rbu.add_field('currentWelcomeMessage', value={'uuid': "4bc57114-c8c9-11e4-a859-37b5db95d856"}, extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("shares") rbu.add_field('secured', e_type=bool) rbu.add_field('expirationDate') rbu.add_field('subject') rbu.add_field('message') # [document uuids,] rbu.add_field('documents', required=True) # [GenericUserDto,] rbu.add_field('recipients',required=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("users") rbu.add_field('firstName', required=True) rbu.add_field('lastName', required=True) rbu.add_field('mail', required=True) rbu.add_field('uuid') rbu.add_field('domain') rbu.add_field('guest') rbu.add_field("role") rbu.add_field("accountType") # Field use less because there are not filled by the server #rbu.add_field("canCreateGuest", extended = True) #rbu.add_field("canUpload", extended = True) #rbu.add_field("restricted", extended = True) #rbu.add_field("restrictedContacts", extended = True) #rbu.add_field("creationDate", extended = True) #rbu.add_field("expirationDate", extended = True) #rbu.add_field("modificationDate", extended = True) #rbu.add_field("comment", extended = True) #rbu.add_field("locale", extended = True) #rbu.add_field("externalMailLocale", extended = True) return rbu
def get_rbu(self): rbu = ResourceBuilder("contactslistcontact") rbu.add_field('uuid') rbu.add_field('mail', required=True) rbu.add_field('firstName') rbu.add_field('lastName') rbu.add_field('mailingListUuid', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("users") rbu.add_field('firstName', required=True) rbu.add_field('lastName', required=True) rbu.add_field('mail', required=True) rbu.add_field('uuid') rbu.add_field('domain') rbu.add_field('guest') rbu.add_field('role') rbu.add_field('locale') rbu.add_field('creationDate') rbu.add_field('modificationDate') rbu.add_field('canUpload', extended=True) rbu.add_field('canCreateGuest', extended=True) rbu.add_field('restricted', extended=True) rbu.add_field('expirationDate', extended=True) rbu.add_field('comment', extended=True) rbu.add_field('restrictedContacts', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("functionality") rbu.add_field('identifier', required=True) rbu.add_field('type') rbu.add_field('activationPolicy', required=False) rbu.add_field('configurationPolicy', extended=True, required=False) rbu.add_field('delegationPolicy', extended=True, required=False) rbu.add_field('parameters') rbu.add_field('parentIdentifier', extended=True) #rbu.add_field('functionalities', extended=True) rbu.add_field('domain', extended=True, required=True) rbu.add_field('parentAllowParametersUpdate', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("rshares") rbu.add_field('name') rbu.add_field('size') rbu.add_field('uuid') rbu.add_field('creationDate') rbu.add_field('modificationDate') rbu.add_field('type', extended=True) rbu.add_field('expirationDate', extended=True) rbu.add_field('ciphered', extended=True) rbu.add_field('description', extended=True) rbu.add_field('message', extended=True) rbu.add_field('downloaded', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("template_resource") rbu.add_field('name') rbu.add_field('size') rbu.add_field('uuid') rbu.add_field('creationDate') rbu.add_field('modificationDate') rbu.add_field('description', extended=True) rbu.add_field('sha256sum', extended=True) rbu.add_field('metaData', extended=True) rbu.add_field( 'myDomain', value={ 'identifier':'LinShareRootDomain', }, arg="domain", extended=False, required=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("guests") rbu.add_field('uuid') rbu.add_field('firstName', required=True) rbu.add_field('lastName', required=True) rbu.add_field('mail', required=True) rbu.add_field('canUpload', value=True) rbu.add_field('expirationDate') rbu.add_field('restricted', value=False) rbu.add_field('restrictedContacts', extended=True) rbu.add_field('owner', extended=True) rbu.add_field('domain', extended=True) rbu.add_field('creationDate', extended=True) rbu.add_field('modificationDate', extended=True) rbu.add_field('locale', extended=True) rbu.add_field('externalMailLocale', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("domain_patterns", required=True) rbu.add_field('uuid') rbu.add_field('label', required=True) rbu.add_field('description', value="") rbu.add_field('userFirstName', 'first_name', extended=True) rbu.add_field('userLastName', 'last_name', extended=True) rbu.add_field('userMail', 'mail', extended=True) rbu.add_field('ldapUid', extended=True) rbu.add_field("authCommand", extended=True) rbu.add_field("searchUserCommand", extended=True) rbu.add_field("autoCompleteCommandOnAllAttributes", extended=True) rbu.add_field("autoCompleteCommandOnFirstAndLastName", extended=True) rbu.add_field('completionPageSize', extended=True, e_type=int) rbu.add_field('completionSizeLimit', extended=True, e_type=int) rbu.add_field('searchPageSize', extended=True, e_type=int) rbu.add_field('searchSizeLimit', extended=True, e_type=int) return rbu
def get_rbu(self): rbu = ResourceBuilder("domain_policies") rbu.add_field('identifier', required=True) rbu.add_field('description') rbu.add_field('accessPolicy', extended=True, value={"rules": []}) return rbu
def get_rbu(self): rbu = ResourceBuilder("threads") rbu.add_field('name', required=True) rbu.add_field('domain') rbu.add_field('uuid') rbu.add_field('creationDate') rbu.add_field('modificationDate') return rbu
def get_rbu(self): rbu = ResourceBuilder("thread_members") return rbu
def get_rbu(self): rbu = ResourceBuilder("documents") rbu.add_field('uuid') rbu.add_field('name', required=True) rbu.add_field('size') rbu.add_field('type', value="FOLDER") rbu.add_field('creationDate') rbu.add_field('uploadDate') rbu.add_field('modificationDate') rbu.add_field('parent') rbu.add_field('lastAuthor', extended=False) rbu.add_field('mimeType', extended=True) rbu.add_field('hasRevision', extended=True) rbu.add_field('hasThumbnail', extended=True) rbu.add_field('description', extended=True) rbu.add_field('sha256sum', extended=True) rbu.add_field('workGroup', extended=True) rbu.add_field('metaData', extended=True) return rbu
def get_rbu_update(self): rbu = ResourceBuilder("password") rbu.add_field('oldPwd', required=True) rbu.add_field('newPwd', required=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("folders") rbu.add_field('uuid') rbu.add_field('name', required=True) rbu.add_field('type', value="FOLDER", required=True) rbu.add_field('nodeType', value="FOLDER", required=True) rbu.add_field('creationDate') rbu.add_field('modificationDate') rbu.add_field('parent') rbu.add_field('workGroup', arg="wg_uuid", extended=True, required=True) # rbu.add_field('lastAuthor', extended=True) rbu.add_field('description', extended=True) rbu.add_field('metaData', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("threads") rbu.add_field('name', required=True) rbu.add_field('uuid') rbu.add_field('creationDate') rbu.add_field('modificationDate') rbu.add_field('domain', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("public_key") rbu.add_field('issuer', required=True) rbu.add_field('format', required=True) rbu.add_field('creationDate') rbu.add_field('uuid') rbu.add_field('domainUuid', arg="domain", extended=True) rbu.add_field('publicKey', arg="key", extended=True, required=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("jwt") rbu.add_field('action') rbu.add_field('creationDate') rbu.add_field('authUser') rbu.add_field('actor', extended=True) rbu.add_field('resource') rbu.add_field('uuid', extended=True) rbu.add_field('type', extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("users") rbu.add_field('firstName', required=True) rbu.add_field('lastName', required=True) rbu.add_field('mail', required=True) rbu.add_field('uuid') rbu.add_field('domain') rbu.add_field('role') rbu.add_field('locale') rbu.add_field('creationDate') rbu.add_field('modificationDate') rbu.add_field('canUpload', extended=True) rbu.add_field('canCreateGuest', extended=True) rbu.add_field('restricted', extended=True) rbu.add_field('expirationDate', extended=True) rbu.add_field('comment', extended=True) rbu.add_field('externalMailLocale', value="EN", extended=True) return rbu
def get_rbu(self): rbu = ResourceBuilder("jwt") rbu.add_field('label') rbu.add_field('subject') rbu.add_field('uuid') rbu.add_field('description') rbu.add_field('creationDate') rbu.add_field('domain', extended=True) rbu.add_field('actor', extended=True) rbu.add_field('issuer', extended=True) def to_generic_object(value, context): # pylint: disable=unused-argument return {'uuid': value} rbu.add_hook("actor", to_generic_object) rbu.add_hook("domain", to_generic_object) return rbu
def get_rbu(self): rbu = ResourceBuilder("mail_configs") rbu.add_field('name') rbu.add_field('uuid') rbu.add_field('domain') rbu.add_field('readonly') rbu.add_field('visible') rbu.add_field('creationDate') rbu.add_field('modificationDate') rbu.add_field('mailLayout', extended=True) return rbu