MCPcopy Create free account
hub / github.com/dropbox/dropbox-sdk-python / AddSecondaryEmailResult

Class AddSecondaryEmailResult

dropbox/team.py:150–474  ·  view source on GitHub ↗

Result of trying to add a secondary email to a user. 'success' is the only value indicating that a secondary email was successfully added to a user. The other values explain the type of error that occurred, and include the email for which the error occurred. This class acts as

Source from the content-addressed store, hash-verified

148ActiveWebSession_validator = bv.Struct(ActiveWebSession)
149
150class AddSecondaryEmailResult(bb.Union):
151 """
152 Result of trying to add a secondary email to a user. 'success' is the only
153 value indicating that a secondary email was successfully added to a user.
154 The other values explain the type of error that occurred, and include the
155 email for which the error occurred.
156
157 This class acts as a tagged union. Only one of the ``is_*`` methods will
158 return true. To get the associated value of a tag (if one exists), use the
159 corresponding ``get_*`` method.
160
161 :ivar secondary_emails.SecondaryEmail team.AddSecondaryEmailResult.success:
162 Describes a secondary email that was successfully added to a user.
163 :ivar str team.AddSecondaryEmailResult.unavailable: Secondary email is not
164 available to be claimed by the user.
165 :ivar str team.AddSecondaryEmailResult.already_pending: Secondary email is
166 already a pending email for the user.
167 :ivar str team.AddSecondaryEmailResult.already_owned_by_user: Secondary
168 email is already a verified email for the user.
169 :ivar str team.AddSecondaryEmailResult.reached_limit: User already has the
170 maximum number of secondary emails allowed.
171 :ivar str team.AddSecondaryEmailResult.transient_error: A transient error
172 occurred. Please try again later.
173 :ivar str team.AddSecondaryEmailResult.too_many_updates: An error occurred
174 due to conflicting updates. Please try again later.
175 :ivar str team.AddSecondaryEmailResult.unknown_error: An unknown error
176 occurred.
177 :ivar str team.AddSecondaryEmailResult.rate_limited: Too many emails are
178 being sent to this email address. Please try again later.
179 """
180
181 _catch_all = 'other'
182 # Attribute is overwritten below the class definition
183 other = None
184
185 @classmethod
186 def success(cls, val):
187 """
188 Create an instance of this class set to the ``success`` tag with value
189 ``val``.
190
191 :param secondary_emails.SecondaryEmail val:
192 :rtype: AddSecondaryEmailResult
193 """
194 return cls('success', val)
195
196 @classmethod
197 def unavailable(cls, val):
198 """
199 Create an instance of this class set to the ``unavailable`` tag with
200 value ``val``.
201
202 :param str val:
203 :rtype: AddSecondaryEmailResult
204 """
205 return cls('unavailable', val)
206
207 @classmethod

Callers 1

team.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected