about summary refs log tree commit diff
path: root/.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/disposition.py
diff options
context:
space:
mode:
authorS. Solomon Darnell2025-03-28 21:52:21 -0500
committerS. Solomon Darnell2025-03-28 21:52:21 -0500
commit4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch)
treeee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/disposition.py
parentcc961e04ba734dd72309fb548a2f97d67d578813 (diff)
downloadgn-ai-master.tar.gz
two version of R2R are here HEAD master
Diffstat (limited to '.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/disposition.py')
-rw-r--r--.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/disposition.py72
1 files changed, 72 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/disposition.py b/.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/disposition.py
new file mode 100644
index 00000000..a0bdc354
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/disposition.py
@@ -0,0 +1,72 @@
+class Disposition(object):
+    """The content-disposition of the Attachment specifying how you would like
+    the attachment to be displayed."""
+
+    def __init__(self, disposition=None):
+        """Create a Disposition object
+
+        :param disposition: The content-disposition of the attachment,
+                            specifying display style.
+                            Specifies how you would like the attachment to be
+                            displayed.
+                            - "inline" results in the attached file being
+                              displayed automatically within the message.
+                            - "attachment" results in the attached file
+                              requiring some action to display (e.g. opening
+                              or downloading the file).
+                            If unspecified, "attachment" is used. Must be one
+                            of the two choices.
+        :type disposition: string, optional
+        """
+        self._disposition = None
+
+        if disposition is not None:
+            self.disposition = disposition
+
+    @property
+    def disposition(self):
+        """The content-disposition of the attachment, specifying display style.
+           Specifies how you would like the attachment to be displayed.
+           - "inline" results in the attached file being displayed
+             automatically within the message.
+           - "attachment" results in the attached file requiring some action to
+             display (e.g. opening or downloading the file).
+           If unspecified, "attachment" is used. Must be one of the two
+           choices.
+
+        :rtype: string
+        """
+        return self._disposition
+
+    @disposition.setter
+    def disposition(self, value):
+        """The content-disposition of the attachment, specifying display style.
+           Specifies how you would like the attachment to be displayed.
+           - "inline" results in the attached file being displayed
+             automatically within the message.
+           - "attachment" results in the attached file requiring some action to
+             display (e.g. opening or downloading the file).
+           If unspecified, "attachment" is used. Must be one of the two
+           choices.
+
+        :param value: The content-disposition of the attachment, specifying
+                      display style.
+           Specifies how you would like the attachment to be displayed.
+           - "inline" results in the attached file being displayed
+             automatically within the message.
+           - "attachment" results in the attached file requiring some action to
+             display (e.g. opening or downloading the file).
+           If unspecified, "attachment" is used. Must be one of the two
+           choices.
+        :type value: string
+        """
+        self._disposition = value
+
+    def get(self):
+        """
+        Get a JSON-ready representation of this Disposition.
+
+        :returns: This Disposition, ready for use in a request body.
+        :rtype: string
+        """
+        return self.disposition