
    d{i                         d Z ddlmZmZmZmZmZ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 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)values)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                   Z    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d	ed
edeeef   dd f
dZej                  fded	ed
edeeef   dd f
dZej                  fded	ed
edeeef   def
dZej                  fded	ed
edeeef   def
dZdefdZ xZS )AssessmentsInstancea  
    :ivar account_sid: The unique SID identifier of the Account.
    :ivar assessment_sid: The SID of the assessment
    :ivar offset: Offset of the conversation
    :ivar report: The flag indicating if this assessment is part of report
    :ivar weight: The weightage given to this comment
    :ivar agent_id: The id of the Agent
    :ivar segment_id: Segment Id of conversation
    :ivar user_name: The name of the user.
    :ivar user_email: The email id of the user.
    :ivar answer_text: The answer text selected by user
    :ivar answer_id: The id of the answer selected by user
    :ivar assessment: Assessment Details associated with an assessment
    :ivar timestamp:
    :ivar url:
    versionpayloadassessment_sidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d|xs | j                  i| _        d | _        y )Naccount_sidr   offsetreportweightagent_id
segment_id	user_name
user_emailanswer_text	answer_id
assessment	timestampurl)super__init__getr   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   	_solution_context)selfr   r   r   	__class__s       a/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/flex_api/v1/assessments.pyr%   zAssessmentsInstance.__init__+   s    	!*1++m*D-4[[9I-J%,[[%:&-kk(&;%,[[%:'.{{:'>)0\)B(/K(@)0\)B*1++m*D(/K(@7>{{<7P(/K(@")++e"4 nC0C0C
 7;    returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )z
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: AssessmentsContext for this AssessmentsInstance
        r   r   )r(   AssessmentsContext_versionr'   r)   s    r+   _proxyzAssessmentsInstance._proxyG   s:     == .#~~.>?DM }}r,   r   r   r    authorizationc                 @    | j                   j                  ||||      S )[  
        Update the AssessmentsInstance

        :param offset: The offset of the conversation
        :param answer_text: The answer text selected by user
        :param answer_id: The id of the answer selected by user
        :param authorization: The Authorization HTTP request header

        :returns: The updated AssessmentsInstance
        r   r   r    r4   )r3   updater)   r   r   r    r4   s        r+   r8   zAssessmentsInstance.updateV   s,    " {{!!#'	 " 
 	
r,   c                 \   K   | j                   j                  ||||       d{   S 7 w)u  
        Asynchronous coroutine to update the AssessmentsInstance

        :param offset: The offset of the conversation
        :param answer_text: The answer text selected by user
        :param answer_id: The id of the answer selected by user
        :param authorization: The Authorization HTTP request header

        :returns: The updated AssessmentsInstance
        r7   N)r3   update_asyncr9   s        r+   r<   z AssessmentsInstance.update_asyncn   s:     " [[--#'	 . 
 
 	
 
   #,*,c                 @    | j                   j                  ||||      S )a~  
        Update the AssessmentsInstance with HTTP info

        :param offset: The offset of the conversation
        :param answer_text: The answer text selected by user
        :param answer_id: The id of the answer selected by user
        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r7   )r3   update_with_http_infor9   s        r+   r?   z)AssessmentsInstance.update_with_http_info   s,    " {{00#'	 1 
 	
r,   c                 \   K   | j                   j                  ||||       d{   S 7 w)a  
        Asynchronous coroutine to update the AssessmentsInstance with HTTP info

        :param offset: The offset of the conversation
        :param answer_text: The answer text selected by user
        :param answer_id: The id of the answer selected by user
        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r7   N)r3   update_with_http_info_asyncr9   s        r+   rA   z/AssessmentsInstance.update_with_http_info_async   s:     " [[<<#'	 = 
 
 	
 
r=   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/AssessmentsInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z*<Twilio.FlexApi.V1.AssessmentsInstance {}>joinr'   itemsrH   r)   contexts     r+   __repr__zAssessmentsInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr,   )N)r-   r0   )__name__
__module____qualname____doc__r   r   strr   r   r%   propertyr3   r
   unsetfloatr   objectr8   r<   r   r?   rA   rU   __classcell__r*   s   @r+   r   r      sx   * )-	;; c3h; !	;8  & -3LL

 
 	

 S&[)
 

: -3LL

 
 	

 S&[)
 

: -3LL

 
 	

 S&[)
 

: -3LL

 
 	

 S&[)
 

0L# Lr,   r   c                       e Zd Zdedef fdZej                  fdededede	ee
f   def
d	Zej                  fdededede	ee
f   def
d
Zej                  fdededede	ee
f   def
dZej                  fdededede	ee
f   def
dZej                  fdededede	ee
f   def
dZej                  fdededede	ee
f   def
dZdefdZ xZS )r0   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the AssessmentsContext

        :param version: Version that contains the resource
        :param assessment_sid: The SID of the assessment to be modified
        r   z8/Insights/QualityManagement/Assessments/{assessment_sid}N )r$   r%   r'   rH   _uri)r)   r   r   r*   s      r+   r%   zAssessmentsContext.__init__   sF     	! n
 VNUU 
nn
	r,   r   r   r    r4   r-   c                    t        j                  |||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)
        Offset
AnswerTextAnswerIdAuthorization!application/x-www-form-urlencodedContent-Typeapplication/jsonAcceptPOSTmethoduridataheaders)r
   ofr\   
isinstancerZ   r1   update_with_response_inford   r)   r   r   r    r4   rs   rt   s          r+   _updatezAssessmentsContext._update   s     yy )%
 ))B- V\\)=#.}'4GO$"E.}}66tyytW 7 
 	
r,   c                 ~    | j                  ||||      \  }}}t        | j                  || j                  d         S )r6   r7   r   r/   )ry   r   r1   r'   r)   r   r   r    r4   r   _s          r+   r8   zAssessmentsContext.update   sM    " #'	 % 
A #MM74>>BR3S
 	
r,   c                     | j                  ||||      \  }}}t        | j                  || j                  d         }t	        |||      S )a  
        Update the AssessmentsInstance and return response metadata

        :param offset: The offset of the conversation
        :param answer_text: The answer text selected by user
        :param answer_id: The id of the answer selected by user
        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r7   r   r/   rs   status_codert   )ry   r   r1   r'   r   	r)   r   r   r    r4   r   r   rt   instances	            r+   r?   z(AssessmentsContext.update_with_http_info  s\    " )-#'	 )5 )
%g 'MM74>>BR3S
 k7SSr,   c                 2  K   t        j                  |||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)
        rf   rj   rk   rl   rm   rn   ro   rp   N)r
   ru   r\   rv   rZ   r1   update_with_response_info_asyncrd   rx   s          r+   _update_asyncz AssessmentsContext._update_async/  s      yy )%
 ))B- V\\)=#.}'4GO$"E.]]BBtyytW C 
 
 	
 
s   BBBBc                    K   | j                  ||||       d{   \  }}}t        | j                  || j                  d         S 7 -w)r;   r7   Nr   r/   )r   r   r1   r'   r{   s          r+   r<   zAssessmentsContext.update_asyncT  s]     " #00#'	 1 
 
A #MM74>>BR3S
 	

s   AA	.Ac                    K   | j                  ||||       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a  
        Asynchronous coroutine to update the AssessmentsInstance and return response metadata

        :param offset: The offset of the conversation
        :param answer_text: The answer text selected by user
        :param answer_id: The id of the answer selected by user
        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r7   Nr   r/   r~   )r   r   r1   r'   r   r   s	            r+   rA   z.AssessmentsContext.update_with_http_info_asynco  sm     " /3.@.@#'	 /A /
 )
%g 'MM74>>BR3S
 k7SS)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )rC   rD   c              3   F   K   | ]  \  }}d j                  ||        ywrF   rG   rI   s      r+   rM   z.AssessmentsContext.__repr__.<locals>.<genexpr>  rN   rO   z)<Twilio.FlexApi.V1.AssessmentsContext {}>rP   rS   s     r+   rU   zAssessmentsContext.__repr__  s6     ((SDNN<P<P<RSS:AA'JJr,   )rV   rW   rX   r   rZ   r%   r
   r\   r]   r   r^   tuplery   r   r8   r   r?   r   r<   rA   rU   r_   r`   s   @r+   r0   r0      s   
 
 
, -3LL#
#
 #
 	#

 S&[)#
 
#
T -3LL

 
 	

 S&[)
 

@ -3LLTT T 	T
 S&[)T 
TB -3LL#
#
 #
 	#

 S&[)#
 
#
T -3LL

 
 	

 S&[)
 

@ -3LLTT T 	T
 S&[)T 
T8K# Kr,   r0   c                   2    e Zd Zdeeef   defdZdefdZy)AssessmentsPager   r-   c                 .    t        | j                  |      S )zq
        Build an instance of AssessmentsInstance

        :param payload: Payload response from the API
        )r   r1   )r)   r   s     r+   get_instancezAssessmentsPage.get_instance  s     #4=='::r,   c                      y)rC   z#<Twilio.FlexApi.V1.AssessmentsPage>rc   r2   s    r+   rU   zAssessmentsPage.__repr__       5r,   N)	rV   rW   rX   r   rZ   r   r   r   rU   rc   r,   r+   r   r     s*    ;DcN ;7J ;5# 5r,   r   c                   	    e Zd Zdef fdZej                  fdedededededed	ed
ededede	ee
f   defdZej                  fdedededededed	ed
ededede	ee
f   defdZej                  fdedededededed	ed
ededede	ee
f   defdZej                  fdedededededed	ed
ededede	ee
f   defdZej                  fdedededededed	ed
ededede	ee
f   defdZej                  fdedededededed	ed
ededed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 )-AssessmentsListr   c                 2    t         |   |       d| _        y)zm
        Initialize the AssessmentsList

        :param version: Version that contains the resource

        z'/Insights/QualityManagement/AssessmentsN)r$   r%   rd   )r)   r   r*   s     r+   r%   zAssessmentsList.__init__  s     	!=	r,   category_sidcategory_namer   r   r   	metric_idmetric_namer   r    questionnaire_sidr4   r-   c                     t        j                  |||||||||	|
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)
        
CategorySidCategoryName	SegmentIdAgentIdrg   MetricId
MetricNamerh   ri   QuestionnaireSidrk   rj   rl   rl   rm   rn   ro   rp   )r
   ru   r1   create_with_response_inford   r)   r   r   r   r   r   r   r   r   r    r   r4   rs   rt   s                 r+   _createzAssessmentsList._create  s    * yy+ -'# %))%$5
 ))!. C
 #F.}}66tyytW 7 
 	
r,   c                 n    | j                  |||||||||	|
|      \  }}}t        | j                  |      S )a  
        Create the AssessmentsInstance

        :param category_sid: The SID of the category
        :param category_name: The name of the category
        :param segment_id: Segment Id of the conversation
        :param agent_id: The id of the Agent
        :param offset: The offset of the conversation.
        :param metric_id: The question SID selected for assessment
        :param metric_name: The question name of the assessment
        :param answer_text: The answer text selected by user
        :param answer_id: The id of the answer selected by user
        :param questionnaire_sid: Questionnaire SID of the associated question
        :param authorization: The Authorization HTTP request header

        :returns: The created AssessmentsInstance
        r   r   r   r   r   r   r   r   r    r   r4   )r   r   r1   r)   r   r   r   r   r   r   r   r   r    r   r4   r   r|   s                 r+   createzAssessmentsList.create  sQ    > %'!##/' % 
A #4=='::r,   c                     | j                  |||||||||	|
|      \  }}}t        | j                  |      }t        |||      S )a2  
        Create the AssessmentsInstance and return response metadata

        :param category_sid: The SID of the category
        :param category_name: The name of the category
        :param segment_id: Segment Id of the conversation
        :param agent_id: The id of the Agent
        :param offset: The offset of the conversation.
        :param metric_id: The question SID selected for assessment
        :param metric_name: The question name of the assessment
        :param answer_text: The answer text selected by user
        :param answer_id: The id of the answer selected by user
        :param questionnaire_sid: Questionnaire SID of the associated question
        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r   r~   )r   r   r1   r   r)   r   r   r   r   r   r   r   r   r    r   r4   r   r   rt   r   s                   r+   create_with_http_infoz%AssessmentsList.create_with_http_info  s`    > )-%'!##/' )5 )
%g 't}}g>k7SSr,   c                    K   t        j                  |||||||||	|
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)
        r   rk   r   rl   rm   rn   ro   rp   N)r
   ru   r1   create_with_response_info_asyncrd   r   s                 r+   _create_asynczAssessmentsList._create_asyncD  s     * yy+ -'# %))%$5
 ))!. C
 #F.]]BBtyytW C 
 
 	
 
s   A/A81A62A8c                    K   | j                  |||||||||	|
|       d{   \  }}}t        | j                  |      S 7 w)a  
        Asynchronously create the AssessmentsInstance

        :param category_sid: The SID of the category
        :param category_name: The name of the category
        :param segment_id: Segment Id of the conversation
        :param agent_id: The id of the Agent
        :param offset: The offset of the conversation.
        :param metric_id: The question SID selected for assessment
        :param metric_name: The question name of the assessment
        :param answer_text: The answer text selected by user
        :param answer_id: The id of the answer selected by user
        :param questionnaire_sid: Questionnaire SID of the associated question
        :param authorization: The Authorization HTTP request header

        :returns: The created AssessmentsInstance
        r   N)r   r   r1   r   s                 r+   create_asynczAssessmentsList.create_asyncv  sa     > #00%'!##/' 1 
 
A #4=='::
s    AAAc                    K   | j                  |||||||||	|
|       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)aA  
        Asynchronously create the AssessmentsInstance and return response metadata

        :param category_sid: The SID of the category
        :param category_name: The name of the category
        :param segment_id: Segment Id of the conversation
        :param agent_id: The id of the Agent
        :param offset: The offset of the conversation.
        :param metric_id: The question SID selected for assessment
        :param metric_name: The question name of the assessment
        :param answer_text: The answer text selected by user
        :param answer_id: The id of the answer selected by user
        :param questionnaire_sid: Questionnaire SID of the associated question
        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r   Nr~   )r   r   r1   r   r   s                   r+   create_with_http_info_asyncz+AssessmentsList.create_with_http_info_async  sq     > /3.@.@%'!##/' /A /
 )
%g 't}}g>k7SS)
s    AA-ANlimit	page_sizec                     | j                   j                  ||      }| j                  |||d         }| j                   j                  ||d         S )a  
        Streams AssessmentsInstance 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 str segment_id: The id of the segment.
        :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   r4   r   r   r   )r1   read_limitspagestreamr)   r4   r   r   r   limitsr   s          r+   r   zAssessmentsList.stream  sX    0 **5)<yy'![)  
 }}##D&/::r,   c                    K   | j                   j                  ||      }| j                  |||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams AssessmentsInstance 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 str segment_id: The id of the segment.
        :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   )r1   r   
page_asyncstream_asyncr   s          r+   r   zAssessmentsList.stream_async  sf     0 **5)<__'![) % 
 
 }}))$w@@
s   7AA$Ac                     | j                   j                  ||      }| j                  |||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a3  
        Streams AssessmentsInstance and returns headers from first page


        :param str authorization: The Authorization HTTP request header
        :param str segment_id: The id of the segment.
        :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   )r1   r   page_with_http_infor   rs   r   rt   r)   r4   r   r   r   r   page_response	generators           r+   stream_with_http_infoz%AssessmentsList.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)aB  
        Asynchronously streams AssessmentsInstance and returns headers from first page


        :param str authorization: The Authorization HTTP request header
        :param str segment_id: The id of the segment.
        :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   )r1   r   page_with_http_info_asyncr   rs   r   rt   r   s           r+   stream_with_http_info_asyncz+AssessmentsList.stream_with_http_info_async5  s     , **5)<"<<'![) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   7BB ABc                 >    t        | j                  ||||            S )a|  
        Lists AssessmentsInstance 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 str segment_id: The id of the segment.
        :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
        r4   r   r   r   )listr   )r)   r4   r   r   r   s        r+   r   zAssessmentsList.listU  s.    . KK+%#	  
 	
r,   c                 ~   K   | j                  ||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists AssessmentsInstance 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 str segment_id: The id of the segment.
        :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)   r4   r   r   r   records         r+   
list_asynczAssessmentsList.list_asyncu  sZ     2 '+&7&7+%#	 '8 ' !
 
 !
 
 	
 
s0   =0=842
48=48=c                 f    | j                  ||||      \  }}}t        |      }t        |||      S )a  
        Lists AssessmentsInstance and returns headers from first page


        :param str authorization: The Authorization HTTP request header
        :param str segment_id: The id of the segment.
        :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)   r4   r   r   r   r   r   rt   rR   s	            r+   list_with_http_infoz#AssessmentsList.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)a-  
        Asynchronously lists AssessmentsInstance and returns headers from first page


        :param str authorization: The Authorization HTTP request header
        :param str segment_id: The id of the segment.
        :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)   r4   r   r   r   r   r   rt   r   rR   s
             r+   list_with_http_info_asyncz)AssessmentsList.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                  |||||d      }t        j                  |dd      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )a  
        Retrieve a single page of AssessmentsInstance records from the API.
        Request is executed immediately

        :param authorization: The Authorization HTTP request header
        :param segment_id: The id of the segment.
        :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 AssessmentsInstance
        rj   r   	PageTokenr   PageSizerk   r   rm   rn   GETrq   rr   paramsrt   )r
   ru   r1   r   rd   r   	r)   r4   r   r   r   r   rs   rt   responses	            r+   r   zAssessmentsList.page  s    ( yy!.''#%
 ))!. C
 /==%%diig & 
 t}}h77r,   c                   K   t        j                  |||||d      }t        j                  |dd      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	a   
        Asynchronously retrieve a single page of AssessmentsInstance records from the API.
        Request is executed immediately

        :param authorization: The Authorization HTTP request header
        :param segment_id: The id of the segment.
        :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 AssessmentsInstance
        r   rk   r   rm   rn   r   r   N)r
   ru   r1   r   rd   r   r   s	            r+   r   zAssessmentsList.page_async   s     ( yy!.''#%
 ))!. C
 /11diig 2 
 
 t}}h77
s   A%B'B(Bc                    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 segment_id: The id of the segment.
        :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 AssessmentsPage, status code, and headers
        r   rk   r   rm   rn   r   r   r~   )r
   ru   r1   page_with_response_inford   r   r   r)   r4   r   r   r   r   rs   rt   r   r   response_headersr   s               r+   r   z#AssessmentsList.page_with_http_info,  s    ( yy!.''#%
 ))!. C
 /26--2W2Wdiig 3X 3
/+/ t}}h7+GWXXr,   c                 0  K   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 segment_id: The id of the segment.
        :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 AssessmentsPage, status code, and headers
        r   rk   r   rm   rn   r   r   Nr~   )r
   ru   r1   page_with_response_info_asyncrd   r   r   r   s               r+   r   z)AssessmentsList.page_with_http_info_asyncY  s     ( yy!.''#%
 ))!. C
 / --==$))D' >   	0+/
 t}}h7+GWXXs   A%B'B(-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of AssessmentsInstance records from the API.
        Request is executed immediately

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

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

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

        :returns: Page of AssessmentsInstance
        r   N)r1   r   r   request_asyncr   r   s      r+   get_page_asynczAssessmentsList.get_page_async  sD      --44BB5*UUt}}h77 Vs   4AAAr   c                 0    t        | j                  |      S zz
        Constructs a AssessmentsContext

        :param assessment_sid: The SID of the assessment to be modified
        r/   r0   r1   r)   r   s     r+   r&   zAssessmentsList.get       "$--OOr,   c                 0    t        | j                  |      S r   r   r   s     r+   __call__zAssessmentsList.__call__  r   r,   c                      y)rC   z#<Twilio.FlexApi.V1.AssessmentsList>rc   r2   s    r+   rU   zAssessmentsList.__repr__  r   r,   )-rV   rW   rX   r   r%   r
   r\   rZ   r]   r   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   r0   r&   r   rU   r_   r`   s   @r+   r   r     s	   	> 	>. -3LL0
0
 0
 	0

 0
 0
 0
 0
 0
 0
 0
 S&[)0
 
0
| -3LL,;,; ,; 	,;
 ,; ,; ,; ,; ,; ,; ,; S&[),; 
,;t -3LL-T-T -T 	-T
 -T -T -T -T -T -T -T S&[)-T 
-Tv -3LL0
0
 0
 	0

 0
 0
 0
 0
 0
 0
 0
 S&[)0
 
0
| -3LL,;,; ,; 	,;
 ,; ,; ,; ,; ,; ,; ,; S&[),; 
,;t -3LL-T-T -T 	-T
 -T -T -T -T -T -T -T S&[)-T 
-Tb -3LL)/##';S&[); #v+&; }	;
 C=; 
%	&;F -3LL)/##'AS&[)A #v+&A }	A
 C=A 
*	+AF -3LL)/##'MS&[)M #v+&M }	M
 C=M 
MD -3LL)/##'MS&[)M #v+&M }	M
 C=M 
MD -3LL)/##'
S&[)
 #v+&
 }	

 C=
 
!	"
D -3LL)/##'
S&[)
 #v+&
 }	

 C=
 
!	"
F -3LL)/##'QS&[)Q #v+&Q }	Q
 C=Q 
QB -3LL)/##'QS&[)Q #v+&Q }	Q
 C=Q 
QB -3LL)/)/*0,,(.*8S&[)*8 #v+&*8 #v+&	*8
 3;'*8 f%*8 
*8\ -3LL)/)/*0,,(.*8S&[)*8 #v+&*8 #v+&	*8
 3;'*8 f%*8 
*8\ -3LL)/)/*0,,(.+YS&[)+Y #v+&+Y #v+&	+Y
 3;'+Y f%+Y 
+Y^ -3LL)/)/*0,,(.-YS&[)-Y #v+&-Y #v+&	-Y
 3;'-Y f%-Y 
-Y^
83 
8? 
8
8s 
8 
8P# P*< PPs P/A P5# 5r,   r   N)rY   typingr   r   r   r   r   r   r	   twilio.baser
   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r0   r   r   rc   r,   r+   <module>r      sh    M L L  0 8 : 2 ' !dL* dLNRK RKj5d 5&N5l N5r,   