
    ]                     d    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\5      r " S S	\5      rg
)z>Shared utility structures and methods for rsync functionality.    )absolute_import)print_function)division)unicode_literalsc                   (    \ rS rSrSrSrSrSrSrSr	g)	
DiffAction   zCEnum class representing possible actions to take for an rsync diff.copyremovemtime_src_to_dstposix_src_to_dst N)
__name__
__module____qualname____firstlineno____doc__COPYREMOVEMTIME_SRC_TO_DSTPOSIX_SRC_TO_DST__static_attributes__r       )platform/gsutil/gslib/utils/rsync_util.pyr   r      s    K	$&''r   r   c                       \ rS rSrSrS rSrg)RsyncDiffToApply   zAClass that encapsulates info needed to apply diff for one object.c                 @    Xl         X l        X0l        X@l        XPl        g)a  Constructor.

Args:
  src_url_str: (str or None) The source URL string, or None if diff_action
      is REMOVE.
  dst_url_str: (str) The destination URL string.
  src_posix_attrs: (posix_util.POSIXAttributes) The source POSIXAttributes.
  diff_action: (DiffAction) DiffAction to be applied.
  copy_size: (int or None) The amount of bytes to copy, or None if
      diff_action is REMOVE.
N)src_url_strdst_url_strsrc_posix_attrsdiff_action	copy_size)selfr   r    r!   r"   r#   s         r   __init__RsyncDiffToApply.__init__"   s!     #"*"Nr   )r#   r"   r    r!   r   N)r   r   r   r   r   r%   r   r   r   r   r   r      s
    Ir   r   N)	r   
__future__r   r   r   r   objectr   r   r   r   r   <module>r)      s/    E & %  '( (v r   