user_routes
routes.user_routes
            DEFAULT_PAGE_IDX
  
      module-attribute
  
DEFAULT_PAGE_IDX = 1
            DEFAULT_PAGE_SIZE
  
      module-attribute
  
DEFAULT_PAGE_SIZE = 6
JobStateField
              Bases: Field
custom deserializer for job_state field
Source code in yaptide/routes/user_routes.py
                40 41 42 43 44 45 46  |  | 
OrderBy
              Bases: Enum
Order by column
Source code in yaptide/routes/user_routes.py
                27 28 29 30 31  |  | 
            END_TIME
  
      class-attribute
      instance-attribute
  
END_TIME = 'end_time'
            START_TIME
  
      class-attribute
      instance-attribute
  
START_TIME = 'start_time'
OrderType
              Bases: Enum
Order type
Source code in yaptide/routes/user_routes.py
                20 21 22 23 24  |  | 
            ASCEND
  
      class-attribute
      instance-attribute
  
ASCEND = 'ascend'
            DESCEND
  
      class-attribute
      instance-attribute
  
DESCEND = 'descend'
UserSimulations
              Bases: Resource
Class responsible for returning user's simulations' basic infos
Source code in yaptide/routes/user_routes.py
                49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136  |  | 
DeleteAPIParametersSchema
              Bases: Schema
Schema for DELETE method parameters
Source code in yaptide/routes/user_routes.py
                61 62 63 64  |  | 
            job_id
  
      class-attribute
      instance-attribute
  
job_id = String(required=True)
GetAPIParametersSchema
              Bases: Schema
Class specifies Get API parameters
Source code in yaptide/routes/user_routes.py
                52 53 54 55 56 57 58 59  |  | 
            job_state
  
      class-attribute
      instance-attribute
  
job_state = JobStateField(
    validate=validate_job_state, load_default=[]
)
            order_by
  
      class-attribute
      instance-attribute
  
order_by = String(load_default=START_TIME.value)
            order_type
  
      class-attribute
      instance-attribute
  
order_type = String(load_default=DESCEND.value)
            page_idx
  
      class-attribute
      instance-attribute
  
page_idx = Integer(load_default=DEFAULT_PAGE_IDX)
            page_size
  
      class-attribute
      instance-attribute
  
page_size = Integer(load_default=DEFAULT_PAGE_SIZE)
            delete
  
      staticmethod
  
delete(user)
Method deleting simulation from database
Source code in yaptide/routes/user_routes.py
              109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136  |  | 
            get
  
      staticmethod
  
get(user)
Method returning simulations from the database
Source code in yaptide/routes/user_routes.py
              66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107  |  | 
UserUpdate
              Bases: Resource
Class responsible for updating the user
Source code in yaptide/routes/user_routes.py
                139 140 141 142 143 144 145 146 147 148 149  |  | 
            post
  
      staticmethod
  
post(user)
Updates user with provided parameters
Source code in yaptide/routes/user_routes.py
              142 143 144 145 146 147 148 149  |  | 
validate_job_state
validate_job_state(states)
check if all states are correct values of EntityState enum
Source code in yaptide/routes/user_routes.py
              34 35 36 37  |  |