
    d{ij                         d Z ddlmZmZmZmZmZmZmZ ddl	m
Z
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  G d
 de      Z G d de      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Flex
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )AnyDictListOptionalUnionIteratorAsyncIterator)	serializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                       e Zd ZdZ	 ddedeeef   dee   f fdZ	e
dd       Zej                  fdeeef   defd	Zej                  fdeeef   defd
Zej                  fdeeef   defdZej                  fdeeef   defdZej                  fdeeef   dd fdZej                  fdeeef   dd fdZej                  fdeeef   defdZej                  fdeeef   defdZej                  ej                  ej                  ej                  fdedeeef   deeef   deeef   deee   ef   dd fdZej                  ej                  ej                  ej                  fdedeeef   deeef   deeef   deee   ef   dd fdZej                  ej                  ej                  ej                  fdedeeef   deeef   deeef   deee   ef   defdZej                  ej                  ej                  ej                  fdedeeef   deeef   deeef   deee   ef   defdZdefdZ xZ S )InsightsQuestionnairesInstancea  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Insights resource and owns this resource.
    :ivar questionnaire_sid: The sid of this questionnaire
    :ivar name: The name of this category.
    :ivar description: The description of this questionnaire
    :ivar active: The flag to enable or disable questionnaire
    :ivar questions: The list of questions with category for a questionnaire
    :ivar url:
    versionpayloadquestionnaire_sidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        d|xs | j                  i| _
        d | _        y )Naccount_sidr   namedescriptionactive	questionsurl)super__init__getr   r   r   r   r   r   r   	_solution_context)selfr   r   r   	__class__s       m/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/flex_api/v1/insights_questionnaires.pyr   z'InsightsQuestionnairesInstance.__init__$   s     	!*1++m*D07<O0P#*;;v#6	*1++m*D&-kk(&;<CKK<T")++e"4  !2!Ld6L6L
 BF    returnc                     | j                   )t        | j                  | j                  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: InsightsQuestionnairesContext for this InsightsQuestionnairesInstance
        r   r   )r"   InsightsQuestionnairesContext_versionr!   r#   s    r%   _proxyz%InsightsQuestionnairesInstance._proxy9   s:     == 9"&..1D"EDM }}r&   authorizationc                 :    | j                   j                  |      S z
        Deletes the InsightsQuestionnairesInstance

        :param authorization: The Authorization HTTP request header

        :returns: True if delete succeeds, False otherwise
        r.   )r-   deleter#   r.   s     r%   r2   z%InsightsQuestionnairesInstance.deleteH   s#     {{!!' " 
 	
r&   c                 V   K   | j                   j                  |       d{   S 7 wz
        Asynchronous coroutine that deletes the InsightsQuestionnairesInstance

        :param authorization: The Authorization HTTP request header

        :returns: True if delete succeeds, False otherwise
        r1   N)r-   delete_asyncr3   s     r%   r6   z+InsightsQuestionnairesInstance.delete_asyncT   s1      [[--' . 
 
 	
 
    )')c                 :    | j                   j                  |      S )z
        Deletes the InsightsQuestionnairesInstance with HTTP info

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with success boolean, status code, and headers
        r1   )r-   delete_with_http_infor3   s     r%   r9   z4InsightsQuestionnairesInstance.delete_with_http_infob   s#     {{00' 1 
 	
r&   c                 V   K   | j                   j                  |       d{   S 7 w)z
        Asynchronous coroutine that deletes the InsightsQuestionnairesInstance with HTTP info

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with success boolean, status code, and headers
        r1   N)r-   delete_with_http_info_asyncr3   s     r%   r;   z:InsightsQuestionnairesInstance.delete_with_http_info_asyncp   s1      [[<<' = 
 
 	
 
r7   c                 :    | j                   j                  |      S )
        Fetch the InsightsQuestionnairesInstance

        :param authorization: The Authorization HTTP request header

        :returns: The fetched InsightsQuestionnairesInstance
        r1   )r-   fetchr3   s     r%   r>   z$InsightsQuestionnairesInstance.fetch~   s#     {{  ' ! 
 	
r&   c                 V   K   | j                   j                  |       d{   S 7 w)
        Asynchronous coroutine to fetch the InsightsQuestionnairesInstance

        :param authorization: The Authorization HTTP request header

        :returns: The fetched InsightsQuestionnairesInstance
        r1   N)r-   fetch_asyncr3   s     r%   rA   z*InsightsQuestionnairesInstance.fetch_async   s1      [[,,' - 
 
 	
 
r7   c                 :    | j                   j                  |      S )z
        Fetch the InsightsQuestionnairesInstance with HTTP info

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r1   )r-   fetch_with_http_infor3   s     r%   rC   z3InsightsQuestionnairesInstance.fetch_with_http_info   s#     {{//' 0 
 	
r&   c                 V   K   | j                   j                  |       d{   S 7 w)z
        Asynchronous coroutine to fetch the InsightsQuestionnairesInstance with HTTP info

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r1   N)r-   fetch_with_http_info_asyncr3   s     r%   rE   z9InsightsQuestionnairesInstance.fetch_with_http_info_async   s1      [[;;' < 
 
 	
 
r7   r   r   r   question_sidsc                 B    | j                   j                  |||||      S )  
        Update the InsightsQuestionnairesInstance

        :param active: The flag to enable or disable questionnaire
        :param authorization: The Authorization HTTP request header
        :param name: The name of this questionnaire
        :param description: The description of this questionnaire
        :param question_sids: The list of questions sids under a questionnaire

        :returns: The updated InsightsQuestionnairesInstance
        r   r.   r   r   rF   )r-   updater#   r   r.   r   r   rF   s         r%   rJ   z%InsightsQuestionnairesInstance.update   s/    & {{!!'#' " 
 	
r&   c                 ^   K   | j                   j                  |||||       d{   S 7 w)  
        Asynchronous coroutine to update the InsightsQuestionnairesInstance

        :param active: The flag to enable or disable questionnaire
        :param authorization: The Authorization HTTP request header
        :param name: The name of this questionnaire
        :param description: The description of this questionnaire
        :param question_sids: The list of questions sids under a questionnaire

        :returns: The updated InsightsQuestionnairesInstance
        rI   N)r-   update_asyncrK   s         r%   rN   z+InsightsQuestionnairesInstance.update_async   s=     & [[--'#' . 
 
 	
 
   $-+-c                 B    | j                   j                  |||||      S )a  
        Update the InsightsQuestionnairesInstance with HTTP info

        :param active: The flag to enable or disable questionnaire
        :param authorization: The Authorization HTTP request header
        :param name: The name of this questionnaire
        :param description: The description of this questionnaire
        :param question_sids: The list of questions sids under a questionnaire

        :returns: ApiResponse with instance, status code, and headers
        rI   )r-   update_with_http_inforK   s         r%   rQ   z4InsightsQuestionnairesInstance.update_with_http_info   s/    & {{00'#' 1 
 	
r&   c                 ^   K   | j                   j                  |||||       d{   S 7 w)a  
        Asynchronous coroutine to update the InsightsQuestionnairesInstance with HTTP info

        :param active: The flag to enable or disable questionnaire
        :param authorization: The Authorization HTTP request header
        :param name: The name of this questionnaire
        :param description: The description of this questionnaire
        :param question_sids: The list of questions sids under a questionnaire

        :returns: ApiResponse with instance, status code, and headers
        rI   N)r-   update_with_http_info_asyncrK   s         r%   rS   z:InsightsQuestionnairesInstance.update_with_http_info_async  s=     & [[<<'#' = 
 
 	
 
rO   c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r%   	<genexpr>z:InsightsQuestionnairesInstance.__repr__.<locals>.<genexpr>(       SDAq7>>!Q/S   !z5<Twilio.FlexApi.V1.InsightsQuestionnairesInstance {}>joinr!   itemsrZ   r#   contexts     r%   __repr__z'InsightsQuestionnairesInstance.__repr__"  s6     ((SDNN<P<P<RSSFMMgVVr&   N)r'   r*   )!__name__
__module____qualname____doc__r   r   strr   r   r   propertyr-   r   unsetr   objectboolr2   r6   r   r9   r;   r>   rA   rC   rE   r   rJ   rN   rQ   rS   rg   __classcell__r$   s   @r%   r   r      s    ,0	FF c3hF $C=	F*   :@ 

E#v+$6 

$ 

 39,,
"3;/
	
 39,,
"3;/
	
 39,,
"3;/
	
 39,,
"3;/
	)
 39,,
"3;/
	)
 39,,
"3;/
	
 39,,
"3;/
	
" -3LL#)<<*0,,28,,

 S&[)
 CK 	

 3;'
 T#Y./
 
*
< -3LL#)<<*0,,28,,

 S&[)
 CK 	

 3;'
 T#Y./
 
*
< -3LL#)<<*0,,28,,

 S&[)
 CK 	

 3;'
 T#Y./
 

< -3LL#)<<*0,,28,,

 S&[)
 CK 	

 3;'
 T#Y./
 

6W# Wr&   r   c                   |    e Zd Zdedef fdZej                  fdeee	f   de
fdZej                  fdeee	f   defdZej                  fdeee	f   defdZej                  fdeee	f   de
fd	Zej                  fdeee	f   defd
Zej                  fdeee	f   defdZej                  fdeee	f   de
fdZej                  fdeee	f   defdZej                  fdeee	f   defdZej                  fdeee	f   de
fdZej                  fdeee	f   defdZej                  fdeee	f   defdZej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee   e	f   de
fdZej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee   e	f   defdZej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee   e	f   defdZej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee   e	f   de
fdZej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee   e	f   defdZej                  ej                  ej                  ej                  fdedeee	f   deee	f   deee	f   deee   e	f   defdZ defdZ! xZ"S )r*   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the InsightsQuestionnairesContext

        :param version: Version that contains the resource
        :param questionnaire_sid: The SID of the questionnaire
        r   z>/Insights/QualityManagement/Questionnaires/{questionnaire_sid}N )r   r   r!   rZ   _uri)r#   r   r   r$   s      r%   r   z&InsightsQuestionnairesContext.__init__.  sJ     	!  !2
 TLSS .. 		r&   r.   r'   c                     t        j                  d|i      }t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        AuthorizationDELETEmethoduriheaders)r   ofr+   delete_with_response_inforw   r#   r.   r~   s      r%   _deletez%InsightsQuestionnairesContext._deleteA  sR     ))
 ))B-}}66G 7 
 	
r&   c                 2    | j                  |      \  }}}|S r0   )r   r#   r.   success_s       r%   r2   z$InsightsQuestionnairesContext.deleteT  s     =AAr&   c                 J    | j                  |      \  }}}t        |||      S )z
        Deletes the InsightsQuestionnairesInstance and return response metadata

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with success boolean, status code, and headers
        r1   datastatus_coder~   )r   r   r#   r.   r   r   r~   s        r%   r9   z3InsightsQuestionnairesContext.delete_with_http_info_  s*     )-=(Q%g['RRr&   c                    K   t        j                  d|i      }t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        ry   rz   r{   N)r   r   r+   delete_with_response_info_asyncrw   r   s      r%   _delete_asyncz+InsightsQuestionnairesContext._delete_asyncl  sa      ))
 ))B-]]BBG C 
 
 	
 
s   AA!AA!c                 N   K   | j                  |       d{   \  }}}|S 7 
wr5   )r   r   s       r%   r6   z*InsightsQuestionnairesContext.delete_async  s/      #00}0MMA Ns   %#%c                 f   K   | j                  |       d{   \  }}}t        |||      S 7 w)a  
        Asynchronous coroutine that deletes the InsightsQuestionnairesInstance and return response metadata

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with success boolean, status code, and headers
        r1   Nr   )r   r   r   s        r%   r;   z9InsightsQuestionnairesContext.delete_with_http_info_async  sC      /3.@.@' /A /
 )
%g ['RR)
s   1/1c                     t        j                  i       }|t         j                  u st        |t              r|r||d<   d|d<   | j
                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        ry   application/jsonAcceptGETr{   )r   r   ro   
isinstancerm   r+   fetch_with_response_inforw   r   s      r%   _fetchz$InsightsQuestionnairesContext._fetch  sf     ))B- V\\)=#.}'4GO$.}}55dii 6 
 	
r&   c                 x    | j                  |      \  }}}t        | j                  || j                  d         S )r=   r1   r   r)   )r   r   r+   r!   r#   r.   r   r   s       r%   r>   z#InsightsQuestionnairesContext.fetch  s>     -@A-MM"nn-@A
 	
r&   c                     | j                  |      \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the InsightsQuestionnairesInstance and return response metadata

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r1   r   r)   r   )r   r   r+   r!   r   r#   r.   r   r   r~   instances         r%   rC   z2InsightsQuestionnairesContext.fetch_with_http_info  sM     )--(P%g1MM"nn-@A

 k7SSr&   c                    K   t        j                  i       }|t         j                  u st        |t              r|r||d<   d|d<   | j
                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        ry   r   r   r   r{   N)r   r   ro   r   rm   r+   fetch_with_response_info_asyncrw   r   s      r%   _fetch_asyncz*InsightsQuestionnairesContext._fetch_async  su      ))B- V\\)=#.}'4GO$.]]AAdii B 
 
 	
 
s   A/A81A62A8c                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         S 7 -w)r@   r1   Nr   r)   )r   r   r+   r!   r   s       r%   rA   z)InsightsQuestionnairesContext.fetch_async  sN      #//m/LLA-MM"nn-@A
 	
 Ms   AA.Ac                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the InsightsQuestionnairesInstance and return response metadata

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r1   Nr   r)   r   )r   r   r+   r!   r   r   s         r%   rE   z8InsightsQuestionnairesContext.fetch_with_http_info_async  sf      /3.?.?' /@ /
 )
%g 2MM"nn-@A

 k7SS)
s   AA<Ar   r   r   rF   c           	      h   t        j                  t        j                  |      ||t        j                  |d       d      }t        j                  i       }|t         j
                  u st        |t              r|r||d<   d|d<   d|d<   | j                  j                  d| j                  ||	      S )
z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S rh   rv   es    r%   <lambda>z7InsightsQuestionnairesContext._update.<locals>.<lambda>'      q r&   ActiveNameDescriptionQuestionSidsry   !application/x-www-form-urlencodedContent-Typer   r   POSTr|   r}   r   r~   )r   r   r
   boolean_to_stringmapro   r   rm   r+   update_with_response_inforw   r#   r   r.   r   r   rF   r   r~   s           r%   _updatez%InsightsQuestionnairesContext._update  s     yy#55f=* )m[ I	
 ))B- V\\)=#.}'4GO$"E.}}66tyytW 7 
 	
r&   c                     | j                  |||||      \  }}}t        | j                  || j                  d         S )rH   rI   r   r)   )r   r   r+   r!   r#   r   r.   r   r   rF   r   r   s           r%   rJ   z$InsightsQuestionnairesContext.update:  sR    & '#' % 
A .MM"nn-@A
 	
r&   c                     | j                  |||||      \  }}}t        | j                  || j                  d         }	t	        |	||      S )a  
        Update the InsightsQuestionnairesInstance and return response metadata

        :param active: The flag to enable or disable questionnaire
        :param authorization: The Authorization HTTP request header
        :param name: The name of this questionnaire
        :param description: The description of this questionnaire
        :param question_sids: The list of questions sids under a questionnaire

        :returns: ApiResponse with instance, status code, and headers
        rI   r   r)   r   )r   r   r+   r!   r   
r#   r   r.   r   r   rF   r   r   r~   r   s
             r%   rQ   z3InsightsQuestionnairesContext.update_with_http_infoZ  sa    & )-'#' )5 )
%g 2MM"nn-@A

 k7SSr&   c           	        K   t        j                  t        j                  |      ||t        j                  |d       d      }t        j                  i       }|t         j
                  u st        |t              r|r||d<   d|d<   d|d<   | j                  j                  d| j                  ||	       d
{   S 7 w)z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S rh   rv   r   s    r%   r   z=InsightsQuestionnairesContext._update_async.<locals>.<lambda>  r   r&   r   ry   r   r   r   r   r   r   N)r   r   r
   r   r   ro   r   rm   r+   update_with_response_info_asyncrw   r   s           r%   _update_asyncz+InsightsQuestionnairesContext._update_async{  s      yy#55f=* )m[ I	
 ))B- V\\)=#.}'4GO$"E.]]BBtyytW C 
 
 	
 
s   B7C 9B>:C c                    K   | j                  |||||       d{   \  }}}t        | j                  || j                  d         S 7 -w)rM   rI   Nr   r)   )r   r   r+   r!   r   s           r%   rN   z*InsightsQuestionnairesContext.update_async  sb     & #00'#' 1 
 
A .MM"nn-@A
 	

s   AA
.Ac                    K   | j                  |||||       d{   \  }}}t        | j                  || j                  d         }	t	        |	||      S 7 ;w)a  
        Asynchronous coroutine to update the InsightsQuestionnairesInstance and return response metadata

        :param active: The flag to enable or disable questionnaire
        :param authorization: The Authorization HTTP request header
        :param name: The name of this questionnaire
        :param description: The description of this questionnaire
        :param question_sids: The list of questions sids under a questionnaire

        :returns: ApiResponse with instance, status code, and headers
        rI   Nr   r)   r   )r   r   r+   r!   r   r   s
             r%   rS   z9InsightsQuestionnairesContext.update_with_http_info_async  sr     & /3.@.@'#' /A /
 )
%g 2MM"nn-@A

 k7SS)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )rU   rV   c              3   F   K   | ]  \  }}d j                  ||        ywrX   rY   r[   s      r%   r_   z9InsightsQuestionnairesContext.__repr__.<locals>.<genexpr>  r`   ra   z4<Twilio.FlexApi.V1.InsightsQuestionnairesContext {}>rb   re   s     r%   rg   z&InsightsQuestionnairesContext.__repr__  s6     ((SDNN<P<P<RSSELLWUUr&   )#ri   rj   rk   r   rm   r   r   ro   r   rp   tupler   rq   r2   r   r9   r   r6   r;   r   r   r>   rC   r   rA   rE   r   r   rJ   rQ   r   rN   rS   rg   rr   rs   s   @r%   r*   r*   ,  s9   
 
C 
& ;A,, 
U3;%7 
5 
& :@ 	E#v+$6 	$ 	 39,,S"3;/S	S 39,,
"3;/
	
, 39,,"3;/	 39,,S"3;/S	S :@ 
E#v+$6 
% 
. 39,,
"3;/
	'
$ 39,,T"3;/T	T& 39,,
"3;/
	
2 39,,
"3;/
	'
$ 39,,T"3;/T	T. -3LL#)<<*0,,28,,%
%
 S&[)%
 CK 	%

 3;'%
 T#Y./%
 
%
T -3LL#)<<*0,,28,,

 S&[)
 CK 	

 3;'
 T#Y./
 
(
F -3LL#)<<*0,,28,,TT S&[)T CK 	T
 3;'T T#Y./T 
TH -3LL#)<<*0,,28,,%
%
 S&[)%
 CK 	%

 3;'%
 T#Y./%
 
%
T -3LL#)<<*0,,28,,

 S&[)
 CK 	

 3;'
 T#Y./
 
(
F -3LL#)<<*0,,28,,TT S&[)T CK 	T
 3;'T T#Y./T 
TBV# Vr&   r*   c                   2    e Zd Zdeeef   defdZdefdZy)InsightsQuestionnairesPager   r'   c                 .    t        | j                  |      S )z|
        Build an instance of InsightsQuestionnairesInstance

        :param payload: Payload response from the API
        )r   r+   )r#   r   s     r%   get_instancez'InsightsQuestionnairesPage.get_instance  s     .dmmWEEr&   c                      y)rU   z.<Twilio.FlexApi.V1.InsightsQuestionnairesPage>rv   r,   s    r%   rg   z#InsightsQuestionnairesPage.__repr__       @r&   N)	ri   rj   rk   r   rm   r   r   r   rg   rv   r&   r%   r   r     s/    FDcN F7U F@# @r&   r   c                   
    e Zd Zdef fdZej                  ej                  ej                  ej                  fdedeee	f   deee	f   dee
e	f   deee   e	f   defd	Zej                  ej                  ej                  ej                  fdedeee	f   deee	f   dee
e	f   deee   e	f   defd
Zej                  ej                  ej                  ej                  fdedeee	f   deee	f   dee
e	f   deee   e	f   defdZej                  ej                  ej                  ej                  fdedeee	f   deee	f   dee
e	f   deee   e	f   defdZej                  ej                  ej                  ej                  fdedeee	f   deee	f   dee
e	f   deee   e	f   defdZej                  ej                  ej                  ej                  fdedeee	f   deee	f   dee
e	f   deee   e	f   defdZej                  ej                  ddfdeee	f   dee
e	f   dee   dee   dee   f
dZej                  ej                  ddfdeee	f   dee
e	f   dee   dee   dee   f
dZej                  ej                  ddfdeee	f   dee
e	f   dee   dee   def
dZej                  ej                  ddfdeee	f   dee
e	f   dee   dee   def
dZej                  ej                  ddfdeee	f   dee
e	f   dee   dee   dee   f
dZej                  ej                  ddfdeee	f   dee
e	f   dee   dee   dee   f
dZej                  ej                  ddfdeee	f   dee
e	f   dee   dee   def
dZej                  ej                  ddfdeee	f   dee
e	f   dee   dee   def
dZ ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   deee	f   deee	f   deee	f   de!fdZ"ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   deee	f   deee	f   deee	f   de!fdZ#ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   deee	f   deee	f   deee	f   defdZ$ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   deee	f   deee	f   deee	f   defd Z%d!ede!fd"Z&d!ede!fd#Z'd$ede(fd%Z)d$ede(fd&Z*defd'Z+ xZ,S )(InsightsQuestionnairesListr   c                 2    t         |   |       d| _        y)zx
        Initialize the InsightsQuestionnairesList

        :param version: Version that contains the resource

        z*/Insights/QualityManagement/QuestionnairesN)r   r   rw   )r#   r   r$   s     r%   r   z#InsightsQuestionnairesList.__init__  s     	!@	r&   r   r.   r   r   rF   r'   c           	         t        j                  ||t        j                  |      t        j                  |d       d      }t        j                  |dd      }d|d<   d|d<   | j
                  j                  d| j                  ||	      S )
z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S rh   rv   r   s    r%   r   z4InsightsQuestionnairesList._create.<locals>.<lambda>!  r   r&   r   r   r   r   r   ry   r   r   r   r   r   r   )r   r   r
   r   r   r+   create_with_response_inforw   r#   r   r.   r   r   rF   r   r~   s           r%   _createz"InsightsQuestionnairesList._create  s     yy*#55f= )m[ I	
 ))!. C
 #F.}}66tyytW 7 
 	
r&   c                 b    | j                  |||||      \  }}}t        | j                  |      S )a  
        Create the InsightsQuestionnairesInstance

        :param name: The name of this questionnaire
        :param authorization: The Authorization HTTP request header
        :param description: The description of this questionnaire
        :param active: The flag to enable or disable questionnaire
        :param question_sids: The list of questions sids under a questionnaire

        :returns: The created InsightsQuestionnairesInstance
        r   r.   r   r   rF   )r   r   r+   r#   r   r.   r   r   rF   r   r   s           r%   createz!InsightsQuestionnairesList.create3  s?    & '#' % 
A .dmmWEEr&   c                 ~    | j                  |||||      \  }}}t        | j                  |      }	t        |	||      S )a  
        Create the InsightsQuestionnairesInstance and return response metadata

        :param name: The name of this questionnaire
        :param authorization: The Authorization HTTP request header
        :param description: The description of this questionnaire
        :param active: The flag to enable or disable questionnaire
        :param question_sids: The list of questions sids under a questionnaire

        :returns: ApiResponse with instance, status code, and headers
        r   r   )r   r   r+   r   
r#   r   r.   r   r   rF   r   r   r~   r   s
             r%   create_with_http_infoz0InsightsQuestionnairesList.create_with_http_infoO  sN    & )-'#' )5 )
%g 2$--Ik7SSr&   c           	      8  K   t        j                  ||t        j                  |      t        j                  |d       d      }t        j                  |dd      }d|d<   d|d<   | j
                  j                  d| j                  ||	       d
{   S 7 w)z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S rh   rv   r   s    r%   r   z:InsightsQuestionnairesList._create_async.<locals>.<lambda>  r   r&   r   r   r   r   r   r   r   r   N)r   r   r
   r   r   r+   create_with_response_info_asyncrw   r   s           r%   _create_asyncz(InsightsQuestionnairesList._create_asyncl  s      yy*#55f= )m[ I	
 ))!. C
 #F.]]BBtyytW C 
 
 	
 
s   BBBBc                 ~   K   | j                  |||||       d{   \  }}}t        | j                  |      S 7 w)a  
        Asynchronously create the InsightsQuestionnairesInstance

        :param name: The name of this questionnaire
        :param authorization: The Authorization HTTP request header
        :param description: The description of this questionnaire
        :param active: The flag to enable or disable questionnaire
        :param question_sids: The list of questions sids under a questionnaire

        :returns: The created InsightsQuestionnairesInstance
        r   N)r   r   r+   r   s           r%   create_asyncz'InsightsQuestionnairesList.create_async  sO     & #00'#' 1 
 
A .dmmWEE
s   =;=c                    K   | j                  |||||       d{   \  }}}t        | j                  |      }	t        |	||      S 7 ,w)a  
        Asynchronously create the InsightsQuestionnairesInstance and return response metadata

        :param name: The name of this questionnaire
        :param authorization: The Authorization HTTP request header
        :param description: The description of this questionnaire
        :param active: The flag to enable or disable questionnaire
        :param question_sids: The list of questions sids under a questionnaire

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   r+   r   r   s
             r%   create_with_http_info_asyncz6InsightsQuestionnairesList.create_with_http_info_async  s_     & /3.@.@'#' /A /
 )
%g 2$--Ik7SS)
s   AA	-ANinclude_inactivelimit	page_sizec                     | j                   j                  ||      }| j                  |||d         }| j                   j                  ||d         S )a  
        Streams InsightsQuestionnairesInstance 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 str authorization: The Authorization HTTP request header
        :param bool include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param 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
        r   r.   r   r   r   )r+   read_limitspagestreamr#   r.   r   r   r   limitsr   s          r%   r   z!InsightsQuestionnairesList.stream  sX    0 **5)<yy'-[)  
 }}##D&/::r&   c                    K   | j                   j                  ||      }| j                  |||d          d{   }| j                   j                  ||d         S 7 #w)a+  
        Asynchronously streams InsightsQuestionnairesInstance 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 str authorization: The Authorization HTTP request header
        :param bool include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param 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
        r   r   Nr   )r+   r   
page_asyncstream_asyncr   s          r%   r   z'InsightsQuestionnairesList.stream_async  sf     0 **5)<__'-[) % 
 
 }}))$w@@
s   7AA$Ac                     | j                   j                  ||      }| j                  |||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )ap  
        Streams InsightsQuestionnairesInstance and returns headers from first page


        :param str authorization: The Authorization HTTP request header
        :param bool include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param 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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )r+   r   page_with_http_infor   r   r   r~   r#   r.   r   r   r   r   page_response	generators           r%   stream_with_http_infoz0InsightsQuestionnairesList.stream_with_http_info  sx    , **5)<00'-[) 1 
 MM((););VG_M	=44m6K6KLLr&   c                   K   | j                   j                  ||      }| j                  |||d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams InsightsQuestionnairesInstance and returns headers from first page


        :param str authorization: The Authorization HTTP request header
        :param bool include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param 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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )r+   r   page_with_http_info_asyncr   r   r   r~   r   s           r%   stream_with_http_info_asyncz6InsightsQuestionnairesList.stream_with_http_info_async-  s     , **5)<"<<'-[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   7BB ABc                 >    t        | j                  ||||            S )a  
        Lists InsightsQuestionnairesInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str authorization: The Authorization HTTP request header
        :param bool include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param 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: list that will contain up to limit results
        r.   r   r   r   )listr   )r#   r.   r   r   r   s        r%   r   zInsightsQuestionnairesList.listM  s.    . KK+!1#	  
 	
r&   c                 ~   K   | j                  ||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists InsightsQuestionnairesInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str authorization: The Authorization HTTP request header
        :param bool include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param 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: list that will contain up to limit results
        r   N)r   )r#   r.   r   r   r   records         r%   
list_asyncz%InsightsQuestionnairesList.list_asyncm  sZ     2 '+&7&7+!1#	 '8 ' !
 
 !
 
 	
 
s0   =0=842
48=48=c                 f    | j                  ||||      \  }}}t        |      }t        |||      S )a[  
        Lists InsightsQuestionnairesInstance and returns headers from first page


        :param str authorization: The Authorization HTTP request header
        :param bool include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param 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: ApiResponse with list of instances, status code, and headers
        r   r   )r   r   r   )	r#   r.   r   r   r   r   r   r~   rd   s	            r%   list_with_http_infoz.InsightsQuestionnairesList.list_with_http_info  sG    , +/*D*D'-	 +E +
'	; Y;PPr&   c                    K   | j                  ||||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }	}t        |	||      S w)aj  
        Asynchronously lists InsightsQuestionnairesInstance and returns headers from first page


        :param str authorization: The Authorization HTTP request header
        :param bool include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param 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: ApiResponse with list of instances, status code, and headers
        r   Nr   )r   r   )
r#   r.   r   r   r   r   r   r~   r   rd   s
             r%   list_with_http_info_asyncz4InsightsQuestionnairesList.list_with_http_info_async  sl     , 150P0P'-	 1Q 1
 +
'	; -666&+
 7666;PPs4   A6A<:8
:<A:<A
page_tokenpage_numberc                    t        j                  |t        j                  |      |||d      }t        j                  |dd      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )a8  
        Retrieve a single page of InsightsQuestionnairesInstance records from the API.
        Request is executed immediately

        :param authorization: The Authorization HTTP request header
        :param include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of InsightsQuestionnairesInstance
        ry   IncludeInactive	PageTokenr   PageSizer   r   r   r   r   r|   r}   paramsr~   )r   r   r
   r   r+   r   rw   r   	r#   r.   r   r  r  r   r   r~   responses	            r%   r   zInsightsQuestionnairesList.page  s    ( yy!.#,#>#>?O#P'#%
 ))!. C
 /==%%diig & 
 *$--BBr&   c                 2  K   t        j                  |t        j                  |      |||d      }t        j                  |dd      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	aG  
        Asynchronously retrieve a single page of InsightsQuestionnairesInstance records from the API.
        Request is executed immediately

        :param authorization: The Authorization HTTP request header
        :param include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of InsightsQuestionnairesInstance
        r  r   r   r   r   r   r	  N)r   r   r
   r   r+   r   rw   r   r  s	            r%   r   z%InsightsQuestionnairesList.page_async  s     ( yy!.#,#>#>?O#P'#%
 ))!. C
 /11diig 2 
 
 *$--BB
s   A8B:B;Bc                 :   t        j                  |t        j                  |      |||d      }t        j                  |dd      }d|d<   | j                  j                  d| j                  ||      \  }}	}
t        | j                  |      }t        ||	|
      S )	a  
        Retrieve a single page with response metadata


        :param authorization: The Authorization HTTP request header
        :param include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with InsightsQuestionnairesPage, status code, and headers
        r  r   r   r   r   r   r	  r   )	r   r   r
   r   r+   page_with_response_inforw   r   r   r#   r.   r   r  r  r   r   r~   r  r   response_headersr   s               r%   r   z.InsightsQuestionnairesList.page_with_http_info$  s    ( yy!.#,#>#>?O#P'#%
 ))!. C
 /26--2W2Wdiig 3X 3
/+/ *$--B+GWXXr&   c                 V  K   t        j                  |t        j                  |      |||d      }t        j                  |dd      }d|d<   | j                  j                  d| j                  ||       d{   \  }}	}
t        | j                  |      }t        ||	|
	      S 7 ,w)
a  
        Asynchronously retrieve a single page with response metadata


        :param authorization: The Authorization HTTP request header
        :param include_inactive: Flag indicating whether to include inactive questionnaires or not
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with InsightsQuestionnairesPage, status code, and headers
        r  r   r   r   r   r   r	  Nr   )	r   r   r
   r   r+   page_with_response_info_asyncrw   r   r   r  s               r%   r   z4InsightsQuestionnairesList.page_with_http_info_asyncQ  s     ( yy!.#,#>#>?O#P'#%
 ))!. C
 / --==$))D' >   	0+/
 *$--B+GWXXs   A8B):B';-B)
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )a  
        Retrieve a specific page of InsightsQuestionnairesInstance records from the API.
        Request is executed immediately

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

        :returns: Page of InsightsQuestionnairesInstance
        r   )r+   domaintwiliorequestr   r#   r  r  s      r%   get_pagez#InsightsQuestionnairesList.get_page  s7     ==''..66ujI)$--BBr&   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a   
        Asynchronously retrieve a specific page of InsightsQuestionnairesInstance records from the API.
        Request is executed immediately

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

        :returns: Page of InsightsQuestionnairesInstance
        r   N)r+   r  r  request_asyncr   r  s      r%   get_page_asyncz)InsightsQuestionnairesList.get_page_async  sD      --44BB5*UU)$--BB Vs   4AAAr   c                 0    t        | j                  |      S z|
        Constructs a InsightsQuestionnairesContext

        :param questionnaire_sid: The SID of the questionnaire
        r)   r*   r+   r#   r   s     r%   r    zInsightsQuestionnairesList.get       -MM->
 	
r&   c                 0    t        | j                  |      S r  r   r!  s     r%   __call__z#InsightsQuestionnairesList.__call__  r"  r&   c                      y)rU   z.<Twilio.FlexApi.V1.InsightsQuestionnairesList>rv   r,   s    r%   rg   z#InsightsQuestionnairesList.__repr__  r   r&   )-ri   rj   rk   r   r   r   ro   rm   r   rp   rq   r   r   r   r   r   r   r   r   r   r   r   intr   r   r	   r   r   r   r   r   r   r  r   r   r   r   r   r  r  r*   r    r$  rg   rr   rs   s   @r%   r   r      s	   	A 	A -3LL*0,,&,ll28,,$
$
 S&[)$
 3;'	$

 dFl#$
 T#Y./$
 
$
R -3LL*0,,&,ll28,,FF S&[)F 3;'	F
 dFl#F T#Y./F 
(F> -3LL*0,,&,ll28,,TT S&[)T 3;'	T
 dFl#T T#Y./T 
T@ -3LL*0,,&,ll28,,$
$
 S&[)$
 3;'	$

 dFl#$
 T#Y./$
 
$
R -3LL*0,,&,ll28,,FF S&[)F 3;'	F
 dFl#F T#Y./F 
(F> -3LL*0,,&,ll28,,TT S&[)T 3;'	T
 dFl#T T#Y./T 
T> -3LL06##';S&[);  f-; }	;
 C=; 
0	1;F -3LL06##'AS&[)A  f-A }	A
 C=A 
5	6AF -3LL06##'MS&[)M  f-M }	M
 C=M 
MD -3LL06##'MS&[)M  f-M }	M
 C=M 
MD -3LL06##'
S&[)
  f-
 }	

 C=
 
,	-
D -3LL06##'
S&[)
  f-
 }	

 C=
 
,	-
F -3LL06##'QS&[)Q  f-Q }	Q
 C=Q 
QB -3LL06##'QS&[)Q  f-Q }	Q
 C=Q 
QB -3LL06)/*0,,(.*CS&[)*C  f-*C #v+&	*C
 3;'*C f%*C 
$*C\ -3LL06)/*0,,(.*CS&[)*C  f-*C #v+&	*C
 3;'*C f%*C 
$*C\ -3LL06)/*0,,(.+YS&[)+Y  f-+Y #v+&	+Y
 3;'+Y f%+Y 
+Y^ -3LL06)/*0,,(.-YS&[)-Y  f--Y #v+&	-Y
 3;'-Y f%-Y 
-Y^
C3 
C+E 
C
Cs 
C7Q 
C
S 
-J 

# 
2O 
@# @r&   r   N)rl   typingr   r   r   r   r   r   r	   twilio.baser
   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r*   r   r   rv   r&   r%   <module>r/     sl    M L L ) 0 8 : 2 ' !PW%5 PWf~VO ~VB@ @&r
@ r
@r&   