aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/disposition.py
diff options
context:
space:
mode:
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