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 file_properties.ModifyTemplateError.conflicting_property_names: A property field key wit
| 623 | LookupError_validator = bv.Union(LookupError) |
| 624 | |
| 625 | class ModifyTemplateError(TemplateError): |
| 626 | """ |
| 627 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 628 | return true. To get the associated value of a tag (if one exists), use the |
| 629 | corresponding ``get_*`` method. |
| 630 | |
| 631 | :ivar file_properties.ModifyTemplateError.conflicting_property_names: A |
| 632 | property field key with that name already exists in the template. |
| 633 | :ivar file_properties.ModifyTemplateError.too_many_properties: There are too |
| 634 | many properties in the changed template. The maximum number of |
| 635 | properties per template is 32. |
| 636 | :ivar file_properties.ModifyTemplateError.too_many_templates: There are too |
| 637 | many templates for the team. |
| 638 | :ivar file_properties.ModifyTemplateError.template_attribute_too_large: The |
| 639 | template name, description or one or more of the property field keys is |
| 640 | too large. |
| 641 | """ |
| 642 | |
| 643 | # Attribute is overwritten below the class definition |
| 644 | conflicting_property_names = None |
| 645 | # Attribute is overwritten below the class definition |
| 646 | too_many_properties = None |
| 647 | # Attribute is overwritten below the class definition |
| 648 | too_many_templates = None |
| 649 | # Attribute is overwritten below the class definition |
| 650 | template_attribute_too_large = None |
| 651 | |
| 652 | def is_conflicting_property_names(self): |
| 653 | """ |
| 654 | Check if the union tag is ``conflicting_property_names``. |
| 655 | |
| 656 | :rtype: bool |
| 657 | """ |
| 658 | return self._tag == 'conflicting_property_names' |
| 659 | |
| 660 | def is_too_many_properties(self): |
| 661 | """ |
| 662 | Check if the union tag is ``too_many_properties``. |
| 663 | |
| 664 | :rtype: bool |
| 665 | """ |
| 666 | return self._tag == 'too_many_properties' |
| 667 | |
| 668 | def is_too_many_templates(self): |
| 669 | """ |
| 670 | Check if the union tag is ``too_many_templates``. |
| 671 | |
| 672 | :rtype: bool |
| 673 | """ |
| 674 | return self._tag == 'too_many_templates' |
| 675 | |
| 676 | def is_template_attribute_too_large(self): |
| 677 | """ |
| 678 | Check if the union tag is ``template_attribute_too_large``. |
| 679 | |
| 680 | :rtype: bool |
| 681 | """ |
| 682 | return self._tag == 'template_attribute_too_large' |