class documentation

class PaperDocUpdatePolicy(bb.Union): (source)

View In Hierarchy

This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar files.PaperDocUpdatePolicy.update: Sets the doc content to the provided content if the provided paper_revision matches the latest doc revision. Otherwise, returns an error. :ivar files.PaperDocUpdatePolicy.overwrite: Sets the doc content to the provided content without checking paper_revision. :ivar files.PaperDocUpdatePolicy.prepend: Adds the provided content to the beginning of the doc without checking paper_revision. :ivar files.PaperDocUpdatePolicy.append: Adds the provided content to the end of the doc without checking paper_revision.

Method is_append Check if the union tag is ``append``.
Method is_other Check if the union tag is ``other``.
Method is_overwrite Check if the union tag is ``overwrite``.
Method is_prepend Check if the union tag is ``prepend``.
Method is_update Check if the union tag is ``update``.
Class Variable append Undocumented
Class Variable other Undocumented
Class Variable overwrite Undocumented
Class Variable prepend Undocumented
Class Variable update Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
def is_append(self): (source)

Check if the union tag is ``append``. :rtype: bool

def is_other(self): (source)

Check if the union tag is ``other``. :rtype: bool

def is_overwrite(self): (source)

Check if the union tag is ``overwrite``. :rtype: bool

def is_prepend(self): (source)

Check if the union tag is ``prepend``. :rtype: bool

def is_update(self): (source)

Check if the union tag is ``update``. :rtype: bool

Undocumented

Undocumented

overwrite = (source)

Undocumented

Undocumented

Undocumented

def _process_custom_annotations(self, annotation_type, field_path, processor): (source)

Undocumented

_catch_all: str = (source)

Undocumented