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"
241+
232242
def __init__(self, version, payload, account_sid, call_sid):
233243
"""
234244
Initialize the FeedbackInstance

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

0 commit comments

Comments
 (0)