10000 Generate enum classes · codegician/twilio-python@2bb4909 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2bb4909

Browse files
committed
Generate enum classes
1 parent be314f4 commit 2bb4909

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1238
-1
lines changed

twilio/rest/api/v2010/account/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,15 @@ def __repr__(self):
696696

697697
class AccountInstance(InstanceResource):
698698

699+
class Status(object):
700+
ACTIVE = "active"
701+
SUSPENDED = "suspended"
702+
CLOSED = "closed"
703+
704+
class Type(object):
705+
TRIAL = "Trial"
706+
FULL = "Full"
707+
699708
def __init__(self, version, payload, sid=None):
700709
"""
701710
Initialize the AccountInstance

twilio/rest/api/v2010/account/authorized_connect_app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ def __repr__(self):
247247

248248
class AuthorizedConnectAppInstance(InstanceResource):
249249

250+
class Permission(object):
251+
GET_ALL = "get-all"
252+
POST_ALL = "post-all"
253+
250254
def __init__(self, version, payload, account_sid, connect_app_sid=None):
251255
"""
252256
Initialize the AuthorizedConnectAppInstance

twilio/rest/api/v2010/account/call/__init__.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,26 @@ def __repr__(self):
517517

518518
class CallInstance(InstanceResource):
519519

520+
class Event(object):
521+
INITIATED = "initiated"
522+
RINGING = "ringing"
523+
ANSWERED = "answered"
524+
COMPLETED = "completed"
525+
526+
class Status(object):
527+
QUEUED = "queued"
528+
RINGING = "ringing"
529+
IN_PROGRESS = "in-progress"
530+
COMPLETED = "completed"
531+
BUSY = "busy"
532+
FAILED = "failed"
533+
NO_ANSWER = "no-answer"
534+
CANCELED = "canceled"
535+
536+
class UpdateStatus(object):
537+
CANCELED = "canceled"
538+
COMPLETED = "completed"
539+
520540
def __init__(self, version, payload, account_sid, sid=None):
521541
"""
522542
Initialize the CallInstance
@@ -743,7 +763,7 @@ def start_time(self):
743763
def status(self):
744764
"""
745765
:returns: The status
746-
:rtype: call.status
766+
:rtype: CallInstance.Status
747767
"""
748768
return self._properties['status']
749769

twilio/rest/api/v2010/account/call/feedback.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,16 @@ def __repr__(self):
229229

230230
class FeedbackInstance(InstanceResource):
231231

232+
class Issues(object):
233+
AUDIO_LATENCY = "audio-latency"
234+
DIGITS_NOT_CAPTURED = "digits-not-captured"
235+
DROPPED_CALL = "dropped-call"
236+
IMPERFECT_AUDIO = "imperfect-audio"
237+
INCORRECT_CALLER_ID = "incorrect-caller-id"
238+
ONE_WAY_AUDIO = "one-way-audio"
239+
POST_DIAL_DELAY = "post-dial-delay"
240+
UNSOLICITED_CALL = "unsolicited-call"
1241 241+
232242
def __init__(self, version, payload, account_sid, call_sid):
233243
"""
234244
Initialize the FeedbackInstance< F438 /div>

twilio/rest/api/v2010/account/call/feedback_summary.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ def __repr__(self):
218218

219219
class FeedbackSummaryInstance(InstanceResource):
220220

221+
class Status(object):
222+
QUEUED = "queued"
223+
IN_PROGRESS = "in-progress"
224+
COMPLETED = "completed"
225+
FAILED = "failed"
226+
221227
def __init__(self, version, payload, account_sid, sid=None):
222228
"""
223229
Initialize the FeedbackSummaryInstance

twilio/rest/api/v2010/account/conference/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,14 @@ def __repr__(self):
354354

355355
class ConferenceInstance(InstanceResource):
356356

357+
class Status(object):
358+
INIT = "init"
359+
IN_PROGRESS = "in-progress"
360+
COMPLETED = "completed"
361+
362+
class UpdateStatus(object):
363+
COMPLETED = "completed"
364+
357365
def __init__(self, version, payload, account_sid, sid=None):
358366
"""
359367
Initialize the ConferenceInstance

twilio/rest/api/v2010/account/conference/participant.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,24 @@ def __repr__(self):
388388

389389
class ParticipantInstance(InstanceResource):
390390

391+
class Status(object):
392+
QUEUED = "queued"
393+
CONNECTING = "connecting"
394+
RINGING = "ringing"
395+
CONNECTED = "connected"
396+
COMPLETE = "complete"
397+
FAILED = "failed"
398+
399+
class Beep(object):
400+
TRUE = "true"
401+
FALSE = "false"
402+
ONENTER = "onEnter"
403+
ONEXIT = "onExit"
404+
405+
class ConferenceRecord(object):
406+
DO_NOT_RECORD = "do-not-record"
407+
RECORD_FROM_START = "record-from-start"
408+
391409
def __init__(self, version, payload, account_sid, conference_sid,
392410
call_sid=None):
393411
"""

twilio/rest/api/v2010/account/connect_app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ def __repr__(self):
290290

291291
class ConnectAppInstance(InstanceResource):
292292

293+
class Permission(object):
294+
GET_ALL = "get-all"
295+
POST_ALL = "post-all"
296+
293297
def __init__(self, version, payload, account_sid, sid=None):
294298
"""
295299
Initialize the ConnectAppInstance

twilio/rest/api/v2010/account/incoming_phone_number/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,16 @@ def __repr__(self):
496496

497497
class IncomingPhoneNumberInstance(InstanceResource):
498498

499+
class AddressRequirement(object):
500+
NONE = "none"
501+
ANY = "any"
502+
LOCAL = "local"
503+
FOREIGN = "foreign"
504+
505+
class EmergencyStatus(object):
506+
ACTIVE = "Active"
507+
INACTIVE = "Inactive"
508+
499509
def __init__(self, version, payload, account_sid, sid=None):
500510
"""
501511
Initialize the IncomingPhoneNumberInstance

twilio/rest/api/v2010/account/incoming_phone_number/local.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ def __repr__(self):
245245

246246
class LocalInstance(InstanceResource):
247247

248+
class AddressRequirement(object):
249+
NONE = "none"
250+
ANY = "any"
251+
LOCAL = "local"
252+
FOREIGN = "foreign"
253+
248254
def __init__(self, version, payload, account_sid):
249255
"""
250256
Initialize the LocalInstance

twilio/rest/api/v2010/account/incoming_phone_number/mobile.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ def __repr__(self):
245245

246246
class MobileInstance(InstanceResource):
247247

248+
class AddressRequirement(object):
249+
NONE = "none"
250+
ANY = "any"
251+
LOCAL = "local"
252+
FOREIGN = "foreign"
253+
248254
def __init__(self, version, payload, account_sid):
249255
"""
250256
Initialize the MobileInstance

twilio/rest/api/v2010/account/incoming_phone_number/toll_free.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ def __repr__(self):
245245

246246
class TollFreeInstance(InstanceResource):
247247

248+
class AddressRequirement(object):
249+
NONE = "none"
250+
ANY = "any"
251+
LOCAL = "local"
252+
FOREIGN = "foreign"
253+
248254
def __init__(self, version, payload, account_sid):
249255
"""
250256
Initialize the TollFreeInstance

twilio/rest/api/v2010/account/message/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,22 @@ def __repr__(self):
401401

402402
class MessageInstance(InstanceResource):
403403

404+
class Status(object):
405+
QUEUED = "queued"
406+
SENDING = "sending"
407+
SENT = "sent"
408+
FAILED = "failed"
409+
DELIVERED = "delivered"
410+
UNDELIVERED = "undelivered"
411+
RECEIVING = "receiving"
412+
RECEIVED = "received"
413+
414+
class Direction(object):
415+
INBOUND = "inbound"
416+
OUTBOUND_API = "outbound-api"
417+
OUTBOUND_CALL = "outbound-call"
418+
OUTBOUND_REPLY = "outbound-reply"
419+
404420
def __init__(self, version, payload, account_sid, sid=None):
405421
"""
406422
Initialize the MessageInstance

twilio/rest/api/v2010/account/message/feedback.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ def __repr__(self):
118118

119119
class FeedbackInstance(InstanceResource):
120120

121+
class Outcome(object):
122+
CONFIRMED = "confirmed"
123+
UMCONFIRMED = "umconfirmed"
124+
121125
def __init__(self, version, payload, account_sid, message_sid):
122126
"""
123127
Initialize the FeedbackInstance

twilio/rest/api/v2010/account/recording/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,17 @@ def __repr__(self):
325325

326326
class RecordingInstance(InstanceResource):
327327

328+
class Source(object):
329+
DIALVERB = "DialVerb"
330+
CONFERENCE = "Conference"
331+
OUTBOUNDAPI = "OutboundAPI"
332+
TRUNKING = "Trunking"
333+
RECORDVERB = "RecordVerb"
334+
335+
class Status(object):
336+
PROCESSING = "processing"
337+
COMPLETED = "completed"
338+
328339
def __init__(self, version, payload, account_sid, sid=None):
329340
"""
330341
Initialize the RecordingInstance

twilio/rest/api/v2010/account/recording/add_on_result/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,16 @@ def __repr__(self):
286286

287287
class AddOnResultInstance(InstanceResource):
288288

289+
class Status(object):
290+
CANCELED = "canceled"
291+
COMPLETED = "completed"
292+
DELETED = "deleted"
293+
FAILED = "failed"
294+
IN_PROGRESS = "in-progress"
295+
INIT = "init"
296+
PROCESSING = "processing"
297+
QUEUED = "queued"
298+
289299
def __init__(self, version, payload, account_sid, reference_sid, sid=None):
290300
"""
291301
Initialize the AddOnResultInstance

twilio/rest/api/v2010/account/recording/transcription.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ def __repr__(self):
265265

266266
class TranscriptionInstance(InstanceResource):
267267

268+
class Status(object):
269+
IN_PROGRESS = "in-progress"
270+
COMPLETED = "completed"
271+
FAILED = "failed"
272+
268273
def __init__(self, version, payload, account_sid, recording_sid, sid=None):
269274
"""
270275
Initialize the TranscriptionInstance

twilio/rest/api/v2010/account/transcription.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ def __repr__(self):
256256

257257
class TranscriptionInstance(InstanceResource):
258258

259+
class Status(object):
260+
IN_PROGRESS = "in-progress"
261+
COMPLETED = "completed"
262+
FAILED = "failed"
263+
259264
def __init__(self, version, payload, account_sid, sid=None):
260265
"""
261266
Initialize the TranscriptionInstance

twilio/rest/api/v2010/account/usage/record/__init__.py

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,98 @@ def __repr__(self):
321321

322322
class RecordInstance(InstanceResource):
323323

324+
class Category(object):
325+
AUTHY_AUTHENTICATIONS = "authy-authentications"
326+
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"
327+
AUTHY_MONTHLY_FEES = "authy-monthly-fees"
328+
AUTHY_PHONE_INTELLIGENCE = "authy-phone-intelligence"
329+
AUTHY_PHONE_VERIFICATIONS = "authy-phone-verifications"
330+
AUTHY_SMS_OUTBOUND = "authy-sms-outbound"
331+
CALL_PROGESS_EVENTS = "call-progess-events"
332+
CALLERIDLOOKUPS = "calleridlookups"
333+
CALLS = "calls"
334+
CALLS_CLIENT = "calls-client"
335+
CALLS_GLOBALCONFERENCE = "calls-globalconference"
336+
CALLS_INBOUND = "calls-inbound"
337+
CALLS_INBOUND_LOCAL = "calls-inbound-local"
338+
CALLS_INBOUND_MOBILE = "calls-inbound-mobile"
339+
CALLS_INBOUND_TOLLFREE = "calls-inbound-tollfree"
340+
CALLS_OUTBOUND = "calls-outbound"
341+
CALLS_RECORDINGS = "calls-recordings"
342+
CALLS_SIP = "calls-sip"
343+
CALLS_SIP_INBOUND = "calls-sip-inbound"
344+
CALLS_SIP_OUTBOUND = "calls-sip-outbound"
345+
CARRIER_LOOKUPS = "carrier-lookups"
346+
CONVERSATIONS = "conversations"
347+
CONVERSATIONS_API_REQUESTS = "conversations-api-requests"
348+
CONVERSATIONS_CONVERSATION_EVENTS = "conversations-conversation-events"
349+
CONVERSATIONS_ENDPOINT_CONNECTIVITY = "conversations-endpoint-connectivity"
350+
CONVERSATIONS_EVENTS = "conversations-events"
351+
CONVERSATIONS_PARTICIPANT_EVENTS = "conversations-participant-events"
352+
CONVERSATIONS_PARTICIPANTS = "conversations-participants"
353+
IP_MESSAGING = "ip-messaging"
354+
IP_MESSAGING_COMMANDS = "ip-messaging-commands"
355+
IP_MESSAGING_DATA_STORAGE = "ip-messaging-data-storage"
356+
IP_MESSAGING_DATA_TRANSFER = "ip-messaging-data-transfer"
357+
IP_MESSAGING_ENDPOINT_CONNECTIVITY = "ip-messaging-endpoint-connectivity"
358+
LOOKUPS = "lookups"
359+
MEDIASTORAGE = "mediastorage"
360+
MMS = "mms"
361+
MMS_INBOUND = "mms-inbound"
362+
MMS_INBOUND_LONGCODE = "mms-inbound-longcode"
363+
MMS_INBOUND_SHORTCODE = "mms-inbound-shortcode"
364+
MMS_OUTBOUND = "mms-outbound"
365+
MMS_OUTBOUND_LONGCODE = "mms-outbound-longcode"
366+
MMS_OUTBOUND_SHORTCODE = "mms-outbound-shortcode"
367+
MONITOR_READS = "monitor-reads"
368+
MONITOR_STORAGE = "monitor-storage"
369+
MONITOR_WRITES = "monitor-writes"
370+
NUMBER_FORMAT_LOOKUPS = "number-format-lookups"
371+
PHONENUMBERS = "phonenumbers"
372+
PHONENUMBERS_CPS = "phonenumbers-cps"
373+
PHONENUMBERS_EMERGENCY = "phonenumbers-emergency"
374+
PHONENUMBERS_LOCAL = "phonenumbers-local"
375+
PHONENUMBERS_MOBILE = "phonenumbers-mobile"
376+
PHONENUMBERS_SETUPS = "phonenumbers-setups"
377+
PHONENUMBERS_TOLLFREE = "phonenumbers-tollfree"
378+
PREMIUMSUPPORT = "premiumsupport"
379+
RECORDINGS = "recordings"
380+
RECORDINGSTORAGE = "recordingstorage"
381+
SHORTCODES = "shortcodes"
382+
SHORTCODES_CUSTOMEROWNED = "shortcodes-customerowned"
383+
SHORTCODES_MMS_ENABLEMENT = "shortcodes-mms-enablement"
384+
SHORTCODES_MPS = "shortcodes-mps"
385+
SHORTCODES_RANDOM = "shortcodes-random"
386+
SHORTCODES_UK = "shortcodes-uk"
387+
SHORTCODES_VANITY = "shortcodes-vanity"
388+
SMS = "sms"
389+
SMS_INBOUND = "sms-inbound"
390+
SMS_INBOUND_LONGCODE = "sms-inbound-longcode"
391+
SMS_INBOUND_SHORTCODE = "sms-inbound-shortcode"
392+
SMS_OUTBOUND = "sms-outbound"
393+
SMS_OUTBOUND_LONGCODE = "sms-outbound-longcode"
394+
SMS_OUTBOUND_SHORTCODE = "sms-outbound-shortcode"
395+
TASKROUTER_TASKS = "taskrouter-tasks"
396+
TOTALPRICE = "totalprice"
397+
TRANSCRIPTIONS = "transcriptions"
398+
TRUNKING_CPS = "trunking-cps"
399+
TRUNKING_EMERGENCY_CALLS = "trunking-emergency-calls"
400+
TRUNKING_ORIGINATION = "trunking-origination"
401+
TRUNKING_ORIGINATION_LOCAL = "trunking-origination-local"
402+
TRUNKING_ORIGINATION_MOBILE = "trunking-origination-mobile"
403+
TRUNKING_ORIGINATION_TOLLFREE = "trunking-origination-tollfree"
404+
TRUNKING_RECORDINGS = "trunking-recordings"
405+
TRUNKING_SECURE = "trunking-secure"
406+
TRUNKING_TERMINATION = "trunking-termination"
407+
TURNMEGABYTES = "turnmegabytes"
408+
TURNMEGABYTES_AUSTRALIA = "turnmegabytes-australia"
409+
TURNMEGABYTES_BRASIL = "turnmegabytes-brasil"
410+
TURNMEGABYTES_IRELAND = "turnmegabytes-ireland"
411+
TURNMEGABYTES_JAPAN = "turnmegabytes-japan"
412+
TURNMEGABYTES_SINGAPORE = "turnmegabytes-singapore"
413+
TURNMEGABYTES_USEAST = "turnmegabytes-useast"
414+
TURNMEGABYTES_USWEST = "turnmegabytes-uswest"
415+
324416
def __init__(self, version, payload, account_sid):
325417
"""
326418
Initialize the RecordInstance

0 commit comments

Comments
 (0)
0