parameters: (self,
                            path: str,
                            snap_schedule: str,
                            start: Optional[str] = None,
                            fs: Optional[str] = None,
                            subvol: Optional[str] = None)
return_statement: return 0, suc_msg, ''
docstring: Set a snapshot schedule for <path>
docstring_summary: Set a snapshot schedule for <path>
docstring_tokens: Set a snapshot schedule for <path >
function: def snap_schedule_add(self,
                            path: str,
                            snap_schedule: str,
                            start: Optional[str] = None,
                            fs: Optional[str] = None,
                            subvol: Optional[str] = None) -> Tuple[int, str, str]:
          '''
          Set a snapshot schedule for <path>
          '''
          try:
              use_fs = fs if fs else self.default_fs
              abs_path = self.resolve_subvolume_path(use_fs, subvol, path)
              self.client.store_snap_schedule(use_fs,
                                              abs_path,
                                              (abs_path, snap_schedule,
                                               use_fs, path, start, subvol))
              suc_msg = f'Schedule set for path {path}'
          except sqlite3.IntegrityError:
              existing_scheds = self.client.get_snap_schedules(use_fs, path)
              report = [s.report() for s in existing_scheds]
              error_msg = f'Found existing schedule {report}'
              self.log.error(error_msg)
              return -errno.EEXIST, '', error_msg
          except ValueError as e:
              return -errno.ENOENT, '', str(e)
          except CephfsConnectionException as e:
              return e.to_tuple()
          return 0, suc_msg, ''
function_tokens: def snap_schedule_add ( self , path : str , snap_schedule : str , start : Optional [ str ] = None , fs : Optional [ str ] = None , subvol : Optional [ str ] = None ) -> Tuple [ int , str , str ] : try : use_fs = fs if fs else self . default_fs abs_path = self . resolve_subvolume_path ( use_fs , subvol , path ) self . client . store_snap_schedule ( use_fs , abs_path , ( abs_path , snap_schedule , use_fs , path , start , subvol ) ) suc_msg = f'Schedule set for path {path}' except sqlite3 . IntegrityError : existing_scheds = self . client . get_snap_schedules ( use_fs , path ) report = [ s . report ( ) for s in existing_scheds ] error_msg = f'Found existing schedule {report}' self . log . error ( error_msg ) return - errno . EEXIST , '' , error_msg except ValueError as e : return - errno . ENOENT , '' , str ( e ) except CephfsConnectionException as e : return e . to_tuple ( ) return 0 , suc_msg , ''