B
    `C                 @   s  d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m!Z! ddl"m#Z# ddl$m%Z% ddl&m'Z' ddl(m)Z) ddl*m+Z+ ddl,m-Z- ddl.m/Z/ ddl0m1Z1 ddl2m3Z3 ddl4m5Z5 ddl6m7Z7 ddl8m9Z9 ddl:m;Z; G d d! d!e	Z<G d"d# d#eZ=G d$d% d%eZ>G d&d' d'eZ?d(S ))za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )deserialize)values)InstanceContext)InstanceResource)ListResource)Page)AddressList)ApplicationList)AuthorizedConnectAppList)AvailablePhoneNumberCountryList)BalanceList)CallList)ConferenceList)ConnectAppList)IncomingPhoneNumberList)KeyList)MessageList)
NewKeyList)NewSigningKeyList)NotificationList)OutgoingCallerIdList)	QueueList)RecordingList)ShortCodeList)SigningKeyList)SipList)	TokenList)TranscriptionList)	UsageList)ValidationRequestListc                   s   e Zd Z fddZejfddZejejddfddZejejddfdd	Zejejejejejfd
dZ	dd Z
dd Zdd Zdd Z  ZS )AccountListc                s*   t t| | i | _djf | j| _dS )z
        Initialize the AccountList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.api.v2010.account.AccountList
        :rtype: twilio.rest.api.v2010.account.AccountList
        z/Accounts.jsonN)superr    __init__	_solutionformat_uri)selfversion)	__class__ U/home/dcms/DCMS/lib/python3.7/site-packages/twilio/rest/api/v2010/account/__init__.pyr"   +   s    	zAccountList.__init__c             C   s.   t d|i}| jjd| j|d}t| j|S )z
        Create the AccountInstance

        :param unicode friendly_name: A human readable description of the account

        :returns: The created AccountInstance
        :rtype: twilio.rest.api.v2010.account.AccountInstance
        FriendlyNamePOST)methoduridata)r   of_versioncreater%   AccountInstance)r&   friendly_namer/   payloadr)   r)   r*   r2   :   s    	zAccountList.createNc             C   s4   | j ||}| j|||d d}| j ||d S )a;  
        Streams AccountInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param unicode friendly_name: FriendlyName to filter on
        :param AccountInstance.Status status: Status to filter on
        :param int limit: Upper limit for the number of records to return. stream()
                          guarantees to never return more than limit.  Default is no limit
        :param int page_size: Number of records to fetch per request, when not set will use
                              the default value of 50 records.  If no page_size is defined
                              but a limit is defined, stream() will attempt to read the
                              limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        :rtype: list[twilio.rest.api.v2010.account.AccountInstance]
        	page_size)r4   statusr6   limit)r1   Zread_limitspagestream)r&   r4   r7   r8   r6   Zlimitsr9   r)   r)   r*   r:   I   s    zAccountList.streamc             C   s   t | j||||dS )a  
        Lists AccountInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param unicode friendly_name: FriendlyName to filter on
        :param AccountInstance.Status status: Status to filter on
        :param int limit: Upper limit for the number of records to return. list() guarantees
                          never to return more than limit.  Default is no limit
        :param int page_size: Number of records to fetch per request, when not set will use
                              the default value of 50 records.  If no page_size is defined
                              but a limit is defined, list() will attempt to read the limit
                              with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        :rtype: list[twilio.rest.api.v2010.account.AccountInstance]
        )r4   r7   r8   r6   )listr:   )r&   r4   r7   r8   r6   r)   r)   r*   r;   c   s
    zAccountList.listc             C   s:   t |||||d}| jjd| j|d}t| j|| jS )a;  
        Retrieve a single page of AccountInstance records from the API.
        Request is executed immediately

        :param unicode friendly_name: FriendlyName to filter on
        :param AccountInstance.Status status: Status to filter on
        :param str page_token: PageToken provided by the API
        :param int page_number: Page Number, this value is simply for client state
        :param int page_size: Number of records to return, defaults to 50

        :returns: Page of AccountInstance
        :rtype: twilio.rest.api.v2010.account.AccountPage
        )r+   StatusZ	PageTokenr   ZPageSizeGET)r-   r.   params)r   r0   r1   r9   r%   AccountPager#   )r&   r4   r7   Z
page_tokenZpage_numberr6   r/   responser)   r)   r*   r9   }   s    
zAccountList.pagec             C   s"   | j jjd|}t| j || jS )a1  
        Retrieve a specific page of AccountInstance records from the API.
        Request is executed immediately

        :param str target_url: API-generated URL for the requested results page

        :returns: Page of AccountInstance
        :rtype: twilio.rest.api.v2010.account.AccountPage
        r=   )r1   domainZtwiliorequestr?   r#   )r&   
target_urlr@   r)   r)   r*   get_page   s    

zAccountList.get_pagec             C   s   t | j|dS )z
        Constructs a AccountContext

        :param sid: Fetch by unique Account Sid

        :returns: twilio.rest.api.v2010.account.AccountContext
        :rtype: twilio.rest.api.v2010.account.AccountContext
        )sid)AccountContextr1   )r&   rE   r)   r)   r*   get   s    	zAccountList.getc             C   s   t | j|dS )z
        Constructs a AccountContext

        :param sid: Fetch by unique Account Sid

        :returns: twilio.rest.api.v2010.account.AccountContext
        :rtype: twilio.rest.api.v2010.account.AccountContext
        )rE   )rF   r1   )r&   rE   r)   r)   r*   __call__   s    	zAccountList.__call__c             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.AccountList>r)   )r&   r)   r)   r*   __repr__   s    zAccountList.__repr__)__name__
__module____qualname__r"   r   unsetr2   r:   r;   r9   rD   rG   rH   rI   __classcell__r)   r)   )r(   r*   r    )   s   

r    c                   s,   e Zd Z fddZdd Zdd Z  ZS )r?   c                s   t t| || || _dS )a  
        Initialize the AccountPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API

        :returns: twilio.rest.api.v2010.account.AccountPage
        :rtype: twilio.rest.api.v2010.account.AccountPage
        N)r!   r?   r"   r#   )r&   r'   r@   Zsolution)r(   r)   r*   r"      s    
zAccountPage.__init__c             C   s   t | j|S )z
        Build an instance of AccountInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.api.v2010.account.AccountInstance
        :rtype: twilio.rest.api.v2010.account.AccountInstance
        )r3   r1   )r&   r5   r)   r)   r*   get_instance   s    	zAccountPage.get_instancec             C   s   dS )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Api.V2010.AccountPage>r)   )r&   r)   r)   r*   rI      s    zAccountPage.__repr__)rJ   rK   rL   r"   rO   rI   rN   r)   r)   )r(   r*   r?      s   r?   c                   s^  e Zd Z fddZdd ZejejfddZedd Z	ed	d
 Z
edd Zedd Zedd Zedd Zedd Zedd Zedd Zedd Zedd Zedd Zedd  Zed!d" Zed#d$ Zed%d& Zed'd( Zed)d* Zed+d, Zed-d. Zed/d0 Zed1d2 Zed3d4 Zed5d6 Z d7d8 Z!  Z"S )9rF   c                s   t t| | d|i| _djf | j| _d| _d| _d| _d| _	d| _
d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _dS )a   
        Initialize the AccountContext

        :param Version version: Version that contains the resource
        :param sid: Fetch by unique Account Sid

        :returns: twilio.rest.api.v2010.account.AccountContext
        :rtype: twilio.rest.api.v2010.account.AccountContext
        rE   z/Accounts/{sid}.jsonN)r!   rF   r"   r#   r$   r%   
_addresses_applications_authorized_connect_apps_available_phone_numbers_balance_calls_conferences_connect_apps_incoming_phone_numbers_keys	_messages	_new_keys_new_signing_keys_notifications_outgoing_caller_ids_queues_recordings_signing_keys_sip_short_codes_tokens_transcriptions_usage_validation_requests)r&   r'   rE   )r(   r)   r*   r"      s6    

zAccountContext.__init__c             C   s(   | j jd| jd}t| j || jd dS )z
        Fetch the AccountInstance

        :returns: The fetched AccountInstance
        :rtype: twilio.rest.api.v2010.account.AccountInstance
        r=   )r-   r.   rE   )rE   )r1   fetchr%   r3   r#   )r&   r5   r)   r)   r*   rh     s    zAccountContext.fetchc             C   s:   t ||d}| jjd| j|d}t| j|| jd dS )a'  
        Update the AccountInstance

        :param unicode friendly_name: FriendlyName to update
        :param AccountInstance.Status status: Status to update the Account with

        :returns: The updated AccountInstance
        :rtype: twilio.rest.api.v2010.account.AccountInstance
        )r+   r<   r,   )r-   r.   r/   rE   )rE   )r   r0   r1   updater%   r3   r#   )r&   r4   r7   r/   r5   r)   r)   r*   ri   '  s    
zAccountContext.updatec             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the addresses

        :returns: twilio.rest.api.v2010.account.address.AddressList
        :rtype: twilio.rest.api.v2010.account.address.AddressList
        NrE   )account_sid)rP   r   r1   r#   )r&   r)   r)   r*   	addresses7  s    
zAccountContext.addressesc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the applications

        :returns: twilio.rest.api.v2010.account.application.ApplicationList
        :rtype: twilio.rest.api.v2010.account.application.ApplicationList
        NrE   )rj   )rQ   r	   r1   r#   )r&   r)   r)   r*   applicationsC  s    
zAccountContext.applicationsc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the authorized_connect_apps

        :returns: twilio.rest.api.v2010.account.authorized_connect_app.AuthorizedConnectAppList
        :rtype: twilio.rest.api.v2010.account.authorized_connect_app.AuthorizedConnectAppList
        NrE   )rj   )rR   r
   r1   r#   )r&   r)   r)   r*   authorized_connect_appsO  s
    
z&AccountContext.authorized_connect_appsc             C   s&   | j dkr t| j| jd d| _ | j S )a  
        Access the available_phone_numbers

        :returns: twilio.rest.api.v2010.account.available_phone_number.AvailablePhoneNumberCountryList
        :rtype: twilio.rest.api.v2010.account.available_phone_number.AvailablePhoneNumberCountryList
        NrE   )rj   )rS   r   r1   r#   )r&   r)   r)   r*   available_phone_numbers^  s
    
z&AccountContext.available_phone_numbersc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the balance

        :returns: twilio.rest.api.v2010.account.balance.BalanceList
        :rtype: twilio.rest.api.v2010.account.balance.BalanceList
        NrE   )rj   )rT   r   r1   r#   )r&   r)   r)   r*   balancem  s    
zAccountContext.balancec             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the calls

        :returns: twilio.rest.api.v2010.account.call.CallList
        :rtype: twilio.rest.api.v2010.account.call.CallList
        NrE   )rj   )rU   r   r1   r#   )r&   r)   r)   r*   callsy  s    
zAccountContext.callsc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the conferences

        :returns: twilio.rest.api.v2010.account.conference.ConferenceList
        :rtype: twilio.rest.api.v2010.account.conference.ConferenceList
        NrE   )rj   )rV   r   r1   r#   )r&   r)   r)   r*   conferences  s    
zAccountContext.conferencesc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the connect_apps

        :returns: twilio.rest.api.v2010.account.connect_app.ConnectAppList
        :rtype: twilio.rest.api.v2010.account.connect_app.ConnectAppList
        NrE   )rj   )rW   r   r1   r#   )r&   r)   r)   r*   connect_apps  s    
zAccountContext.connect_appsc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the incoming_phone_numbers

        :returns: twilio.rest.api.v2010.account.incoming_phone_number.IncomingPhoneNumberList
        :rtype: twilio.rest.api.v2010.account.incoming_phone_number.IncomingPhoneNumberList
        NrE   )rj   )rX   r   r1   r#   )r&   r)   r)   r*   incoming_phone_numbers  s
    
z%AccountContext.incoming_phone_numbersc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the keys

        :returns: twilio.rest.api.v2010.account.key.KeyList
        :rtype: twilio.rest.api.v2010.account.key.KeyList
        NrE   )rj   )rY   r   r1   r#   )r&   r)   r)   r*   keys  s    
zAccountContext.keysc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the messages

        :returns: twilio.rest.api.v2010.account.message.MessageList
        :rtype: twilio.rest.api.v2010.account.message.MessageList
        NrE   )rj   )rZ   r   r1   r#   )r&   r)   r)   r*   messages  s    
zAccountContext.messagesc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the new_keys

        :returns: twilio.rest.api.v2010.account.new_key.NewKeyList
        :rtype: twilio.rest.api.v2010.account.new_key.NewKeyList
        NrE   )rj   )r[   r   r1   r#   )r&   r)   r)   r*   new_keys  s    
zAccountContext.new_keysc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the new_signing_keys

        :returns: twilio.rest.api.v2010.account.new_signing_key.NewSigningKeyList
        :rtype: twilio.rest.api.v2010.account.new_signing_key.NewSigningKeyList
        NrE   )rj   )r\   r   r1   r#   )r&   r)   r)   r*   new_signing_keys  s    
zAccountContext.new_signing_keysc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the notifications

        :returns: twilio.rest.api.v2010.account.notification.NotificationList
        :rtype: twilio.rest.api.v2010.account.notification.NotificationList
        NrE   )rj   )r]   r   r1   r#   )r&   r)   r)   r*   notifications  s    
zAccountContext.notificationsc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the outgoing_caller_ids

        :returns: twilio.rest.api.v2010.account.outgoing_caller_id.OutgoingCallerIdList
        :rtype: twilio.rest.api.v2010.account.outgoing_caller_id.OutgoingCallerIdList
        NrE   )rj   )r^   r   r1   r#   )r&   r)   r)   r*   outgoing_caller_ids  s    
z"AccountContext.outgoing_caller_idsc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the queues

        :returns: twilio.rest.api.v2010.account.queue.QueueList
        :rtype: twilio.rest.api.v2010.account.queue.QueueList
        NrE   )rj   )r_   r   r1   r#   )r&   r)   r)   r*   queues  s    
zAccountContext.queuesc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the recordings

        :returns: twilio.rest.api.v2010.account.recording.RecordingList
        :rtype: twilio.rest.api.v2010.account.recording.RecordingList
        NrE   )rj   )r`   r   r1   r#   )r&   r)   r)   r*   
recordings   s    
zAccountContext.recordingsc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the signing_keys

        :returns: twilio.rest.api.v2010.account.signing_key.SigningKeyList
        :rtype: twilio.rest.api.v2010.account.signing_key.SigningKeyList
        NrE   )rj   )ra   r   r1   r#   )r&   r)   r)   r*   signing_keys  s    
zAccountContext.signing_keysc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the sip

        :returns: twilio.rest.api.v2010.account.sip.SipList
        :rtype: twilio.rest.api.v2010.account.sip.SipList
        NrE   )rj   )rb   r   r1   r#   )r&   r)   r)   r*   sip  s    
zAccountContext.sipc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the short_codes

        :returns: twilio.rest.api.v2010.account.short_code.ShortCodeList
        :rtype: twilio.rest.api.v2010.account.short_code.ShortCodeList
        NrE   )rj   )rc   r   r1   r#   )r&   r)   r)   r*   short_codes$  s    
zAccountContext.short_codesc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the tokens

        :returns: twilio.rest.api.v2010.account.token.TokenList
        :rtype: twilio.rest.api.v2010.account.token.TokenList
        NrE   )rj   )rd   r   r1   r#   )r&   r)   r)   r*   tokens0  s    
zAccountContext.tokensc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the transcriptions

        :returns: twilio.rest.api.v2010.account.transcription.TranscriptionList
        :rtype: twilio.rest.api.v2010.account.transcription.TranscriptionList
        NrE   )rj   )re   r   r1   r#   )r&   r)   r)   r*   transcriptions<  s    
zAccountContext.transcriptionsc             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the usage

        :returns: twilio.rest.api.v2010.account.usage.UsageList
        :rtype: twilio.rest.api.v2010.account.usage.UsageList
        NrE   )rj   )rf   r   r1   r#   )r&   r)   r)   r*   usageH  s    
zAccountContext.usagec             C   s&   | j dkr t| j| jd d| _ | j S )z
        Access the validation_requests

        :returns: twilio.rest.api.v2010.account.validation_request.ValidationRequestList
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestList
        NrE   )rj   )rg   r   r1   r#   )r&   r)   r)   r*   validation_requestsT  s    
z"AccountContext.validation_requestsc             C   s$   d dd | j D }d|S )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
         c             s   s   | ]\}}d  ||V  qdS )z{}={}N)r$   ).0kvr)   r)   r*   	<genexpr>g  s    z*AccountContext.__repr__.<locals>.<genexpr>z$<Twilio.Api.V2010.AccountContext {}>)joinr#   itemsr$   )r&   contextr)   r)   r*   rI   `  s    zAccountContext.__repr__)#rJ   rK   rL   r"   rh   r   rM   ri   propertyrk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   rI   rN   r)   r)   )r(   r*   rF      s8   *rF   c                   s  e Zd ZG dd deZG dd deZdT fdd	Zedd	 Zed
d Z	edd Z
edd Zedd Zedd Zedd Zedd Zedd Zedd Zedd Zdd Zejejfd d!Zed"d# Zed$d% Zed&d' Zed(d) Zed*d+ Zed,d- Zed.d/ Zed0d1 Zed2d3 Zed4d5 Z ed6d7 Z!ed8d9 Z"ed:d; Z#ed<d= Z$ed>d? Z%ed@dA Z&edBdC Z'edDdE Z(edFdG Z)edHdI Z*edJdK Z+edLdM Z,edNdO Z-edPdQ Z.dRdS Z/  Z0S )Ur3   c               @   s   e Zd ZdZdZdZdS )zAccountInstance.StatusactiveZ	suspendedclosedN)rJ   rK   rL   ZACTIVEZ	SUSPENDEDZCLOSEDr)   r)   r)   r*   r<   m  s   r<   c               @   s   e Zd ZdZdZdS )zAccountInstance.TypeZTrialFullN)rJ   rK   rL   ZTRIALZFULLr)   r)   r)   r*   Typer  s   r   Nc                s   t t| | |dt|dt|d|d|d|d|d|d|d	|d
d
| _d| _d|p| jd i| _dS )z
        Initialize the AccountInstance

        :returns: twilio.rest.api.v2010.account.AccountInstance
        :rtype: twilio.rest.api.v2010.account.AccountInstance
        
auth_tokendate_createddate_updatedr4   owner_account_sidrE   r7   subresource_uristyper.   )
r   r   r   r4   r   rE   r7   r   r   r.   N)	r!   r3   r"   rG   r   Zrfc2822_datetime_properties_contextr#   )r&   r'   r5   rE   )r(   r)   r*   r"   v  s    zAccountInstance.__init__c             C   s&   | j dkr t| j| jd d| _ | j S )a'  
        Generate an instance context for the instance, the context is capable of
        performing various actions.  All instance actions are proxied to the context

        :returns: AccountContext for this AccountInstance
        :rtype: twilio.rest.api.v2010.account.AccountContext
        NrE   )rE   )r   rF   r1   r#   )r&   r)   r)   r*   _proxy  s    	
zAccountInstance._proxyc             C   s
   | j d S )z\
        :returns: The authorization token for this account
        :rtype: unicode
        r   )r   )r&   r)   r)   r*   r     s    zAccountInstance.auth_tokenc             C   s
   | j d S )zV
        :returns: The date this account was created
        :rtype: datetime
        r   )r   )r&   r)   r)   r*   r     s    zAccountInstance.date_createdc             C   s
   | j d S )z[
        :returns: The date this account was last updated
        :rtype: datetime
        r   )r   )r&   r)   r)   r*   r     s    zAccountInstance.date_updatedc             C   s
   | j d S )z`
        :returns: A human readable description of this account
        :rtype: unicode
        r4   )r   )r&   r)   r)   r*   r4     s    zAccountInstance.friendly_namec             C   s
   | j d S )zv
        :returns: The unique 34 character id representing the parent of this account
        :rtype: unicode
        r   )r   )r&   r)   r)   r*   r     s    z!AccountInstance.owner_account_sidc             C   s
   | j d S )zq
        :returns: A 34 character string that uniquely identifies this resource.
        :rtype: unicode
        rE   )r   )r&   r)   r)   r*   rE     s    zAccountInstance.sidc             C   s
   | j d S )z]
        :returns: The status of this account
        :rtype: AccountInstance.Status
        r7   )r   )r&   r)   r)   r*   r7     s    zAccountInstance.statusc             C   s
   | j d S )zQ
        :returns: Account Instance Subresources
        :rtype: unicode
        r   )r   )r&   r)   r)   r*   r     s    z AccountInstance.subresource_urisc             C   s
   | j d S )zY
        :returns: The type of this account
        :rtype: AccountInstance.Type
        r   )r   )r&   r)   r)   r*   r     s    zAccountInstance.typec             C   s
   | j d S )zs
        :returns: The URI for this resource, relative to `https://api.twilio.com`
        :rtype: unicode
        r.   )r   )r&   r)   r)   r*   r.     s    zAccountInstance.uric             C   s
   | j  S )z
        Fetch the AccountInstance

        :returns: The fetched AccountInstance
        :rtype: twilio.rest.api.v2010.account.AccountInstance
        )r   rh   )r&   r)   r)   r*   rh     s    zAccountInstance.fetchc             C   s   | j j||dS )a'  
        Update the AccountInstance

        :param unicode friendly_name: FriendlyName to update
        :param AccountInstance.Status status: Status to update the Account with

        :returns: The updated AccountInstance
        :rtype: twilio.rest.api.v2010.account.AccountInstance
        )r4   r7   )r   ri   )r&   r4   r7   r)   r)   r*   ri     s    
zAccountInstance.updatec             C   s   | j jS )z
        Access the addresses

        :returns: twilio.rest.api.v2010.account.address.AddressList
        :rtype: twilio.rest.api.v2010.account.address.AddressList
        )r   rk   )r&   r)   r)   r*   rk     s    zAccountInstance.addressesc             C   s   | j jS )z
        Access the applications

        :returns: twilio.rest.api.v2010.account.application.ApplicationList
        :rtype: twilio.rest.api.v2010.account.application.ApplicationList
        )r   rl   )r&   r)   r)   r*   rl     s    zAccountInstance.applicationsc             C   s   | j jS )z
        Access the authorized_connect_apps

        :returns: twilio.rest.api.v2010.account.authorized_connect_app.AuthorizedConnectAppList
        :rtype: twilio.rest.api.v2010.account.authorized_connect_app.AuthorizedConnectAppList
        )r   rm   )r&   r)   r)   r*   rm     s    z'AccountInstance.authorized_connect_appsc             C   s   | j jS )a  
        Access the available_phone_numbers

        :returns: twilio.rest.api.v2010.account.available_phone_number.AvailablePhoneNumberCountryList
        :rtype: twilio.rest.api.v2010.account.available_phone_number.AvailablePhoneNumberCountryList
        )r   rn   )r&   r)   r)   r*   rn   !  s    z'AccountInstance.available_phone_numbersc             C   s   | j jS )z
        Access the balance

        :returns: twilio.rest.api.v2010.account.balance.BalanceList
        :rtype: twilio.rest.api.v2010.account.balance.BalanceList
        )r   ro   )r&   r)   r)   r*   ro   +  s    zAccountInstance.balancec             C   s   | j jS )z
        Access the calls

        :returns: twilio.rest.api.v2010.account.call.CallList
        :rtype: twilio.rest.api.v2010.account.call.CallList
        )r   rp   )r&   r)   r)   r*   rp   5  s    zAccountInstance.callsc             C   s   | j jS )z
        Access the conferences

        :returns: twilio.rest.api.v2010.account.conference.ConferenceList
        :rtype: twilio.rest.api.v2010.account.conference.ConferenceList
        )r   rq   )r&   r)   r)   r*   rq   ?  s    zAccountInstance.conferencesc             C   s   | j jS )z
        Access the connect_apps

        :returns: twilio.rest.api.v2010.account.connect_app.ConnectAppList
        :rtype: twilio.rest.api.v2010.account.connect_app.ConnectAppList
        )r   rr   )r&   r)   r)   r*   rr   I  s    zAccountInstance.connect_appsc             C   s   | j jS )z
        Access the incoming_phone_numbers

        :returns: twilio.rest.api.v2010.account.incoming_phone_number.IncomingPhoneNumberList
        :rtype: twilio.rest.api.v2010.account.incoming_phone_number.IncomingPhoneNumberList
        )r   rs   )r&   r)   r)   r*   rs   S  s    z&AccountInstance.incoming_phone_numbersc             C   s   | j jS )z
        Access the keys

        :returns: twilio.rest.api.v2010.account.key.KeyList
        :rtype: twilio.rest.api.v2010.account.key.KeyList
        )r   rt   )r&   r)   r)   r*   rt   ]  s    zAccountInstance.keysc             C   s   | j jS )z
        Access the messages

        :returns: twilio.rest.api.v2010.account.message.MessageList
        :rtype: twilio.rest.api.v2010.account.message.MessageList
        )r   ru   )r&   r)   r)   r*   ru   g  s    zAccountInstance.messagesc             C   s   | j jS )z
        Access the new_keys

        :returns: twilio.rest.api.v2010.account.new_key.NewKeyList
        :rtype: twilio.rest.api.v2010.account.new_key.NewKeyList
        )r   rv   )r&   r)   r)   r*   rv   q  s    zAccountInstance.new_keysc             C   s   | j jS )z
        Access the new_signing_keys

        :returns: twilio.rest.api.v2010.account.new_signing_key.NewSigningKeyList
        :rtype: twilio.rest.api.v2010.account.new_signing_key.NewSigningKeyList
        )r   rw   )r&   r)   r)   r*   rw   {  s    z AccountInstance.new_signing_keysc             C   s   | j jS )z
        Access the notifications

        :returns: twilio.rest.api.v2010.account.notification.NotificationList
        :rtype: twilio.rest.api.v2010.account.notification.NotificationList
        )r   rx   )r&   r)   r)   r*   rx     s    zAccountInstance.notificationsc             C   s   | j jS )z
        Access the outgoing_caller_ids

        :returns: twilio.rest.api.v2010.account.outgoing_caller_id.OutgoingCallerIdList
        :rtype: twilio.rest.api.v2010.account.outgoing_caller_id.OutgoingCallerIdList
        )r   ry   )r&   r)   r)   r*   ry     s    z#AccountInstance.outgoing_caller_idsc             C   s   | j jS )z
        Access the queues

        :returns: twilio.rest.api.v2010.account.queue.QueueList
        :rtype: twilio.rest.api.v2010.account.queue.QueueList
        )r   rz   )r&   r)   r)   r*   rz     s    zAccountInstance.queuesc             C   s   | j jS )z
        Access the recordings

        :returns: twilio.rest.api.v2010.account.recording.RecordingList
        :rtype: twilio.rest.api.v2010.account.recording.RecordingList
        )r   r{   )r&   r)   r)   r*   r{     s    zAccountInstance.recordingsc             C   s   | j jS )z
        Access the signing_keys

        :returns: twilio.rest.api.v2010.account.signing_key.SigningKeyList
        :rtype: twilio.rest.api.v2010.account.signing_key.SigningKeyList
        )r   r|   )r&   r)   r)   r*   r|     s    zAccountInstance.signing_keysc             C   s   | j jS )z
        Access the sip

        :returns: twilio.rest.api.v2010.account.sip.SipList
        :rtype: twilio.rest.api.v2010.account.sip.SipList
        )r   r}   )r&   r)   r)   r*   r}     s    zAccountInstance.sipc             C   s   | j jS )z
        Access the short_codes

        :returns: twilio.rest.api.v2010.account.short_code.ShortCodeList
        :rtype: twilio.rest.api.v2010.account.short_code.ShortCodeList
        )r   r~   )r&   r)   r)   r*   r~     s    zAccountInstance.short_codesc             C   s   | j jS )z
        Access the tokens

        :returns: twilio.rest.api.v2010.account.token.TokenList
        :rtype: twilio.rest.api.v2010.account.token.TokenList
        )r   r   )r&   r)   r)   r*   r     s    zAccountInstance.tokensc             C   s   | j jS )z
        Access the transcriptions

        :returns: twilio.rest.api.v2010.account.transcription.TranscriptionList
        :rtype: twilio.rest.api.v2010.account.transcription.TranscriptionList
        )r   r   )r&   r)   r)   r*   r     s    zAccountInstance.transcriptionsc             C   s   | j jS )z
        Access the usage

        :returns: twilio.rest.api.v2010.account.usage.UsageList
        :rtype: twilio.rest.api.v2010.account.usage.UsageList
        )r   r   )r&   r)   r)   r*   r     s    zAccountInstance.usagec             C   s   | j jS )z
        Access the validation_requests

        :returns: twilio.rest.api.v2010.account.validation_request.ValidationRequestList
        :rtype: twilio.rest.api.v2010.account.validation_request.ValidationRequestList
        )r   r   )r&   r)   r)   r*   r     s    z#AccountInstance.validation_requestsc             C   s$   d dd | j D }d|S )zz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        r   c             s   s   | ]\}}d  ||V  qdS )z{}={}N)r$   )r   r   r   r)   r)   r*   r     s    z+AccountInstance.__repr__.<locals>.<genexpr>z%<Twilio.Api.V2010.AccountInstance {}>)r   r#   r   r$   )r&   r   r)   r)   r*   rI     s    zAccountInstance.__repr__)N)1rJ   rK   rL   objectr<   r   r"   r   r   r   r   r   r4   r   rE   r7   r   r   r.   rh   r   rM   ri   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   rI   rN   r)   r)   )r(   r*   r3   k  sR   	























r3   N)@__doc__Ztwilio.baser   r   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.pager   Z%twilio.rest.api.v2010.account.addressr   Z)twilio.rest.api.v2010.account.applicationr	   Z4twilio.rest.api.v2010.account.authorized_connect_appr
   Z4twilio.rest.api.v2010.account.available_phone_numberr   Z%twilio.rest.api.v2010.account.balancer   Z"twilio.rest.api.v2010.account.callr   Z(twilio.rest.api.v2010.account.conferencer   Z)twilio.rest.api.v2010.account.connect_appr   Z3twilio.rest.api.v2010.account.incoming_phone_numberr   Z!twilio.rest.api.v2010.account.keyr   Z%twilio.rest.api.v2010.account.messager   Z%twilio.rest.api.v2010.account.new_keyr   Z-twilio.rest.api.v2010.account.new_signing_keyr   Z*twilio.rest.api.v2010.account.notificationr   Z0twilio.rest.api.v2010.account.outgoing_caller_idr   Z#twilio.rest.api.v2010.account.queuer   Z'twilio.rest.api.v2010.account.recordingr   Z(twilio.rest.api.v2010.account.short_coder   Z)twilio.rest.api.v2010.account.signing_keyr   Z!twilio.rest.api.v2010.account.sipr   Z#twilio.rest.api.v2010.account.tokenr   Z+twilio.rest.api.v2010.account.transcriptionr   Z#twilio.rest.api.v2010.account.usager   Z0twilio.rest.api.v2010.account.validation_requestr   r    r?   rF   r3   r)   r)   r)   r*   <module>   sJ    "&  }