
    j                       d dl 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mZmZ ddlmZmZmZmZ er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 G d ded      Z G d ded      Z G d de      Z G d ded      Z G d de      Z  G d d e      Z! G d! d"e      Z" G d# d$e      Z# G d% d&e      Z$ G d' d(e      Z% G d) d*e      Z& G d+ d,e      Z' G d- d.e      Z( G d/ d0e      Z) G d1 d2ed3      Z* G d4 d5e      Z+ G d6 d7e      Z, G d8 d9e      Z- G d: d;e      Z. G d< d=e      Z/ G d> d?e/d@      Z0 G dA dBedC      Z1 G dD dEe      Z2 G dF dGe      Z3 G dH dIe      Z4 G dJ dKe      Z5 G dL dMe      Z6 G dN dOe/dP      Z7 G dQ dRe      Z8 G dS dTe      Z9 G dU dVe      Z: G dW dXe      Z; G dY dZe      Z< G d[ d\e      Z= G d] d^ed_      Z> G d` daedb      Z? G dc dde      Z@ G de dfe@dg      ZA G dh diedj      ZB G dk dledm      ZC G dn doe      ZD G dp dqedr      ZE G ds dte      ZF G du dvedw      ZG G dx dye      ZH G dz d{e      ZI G d| d}e      ZJy)~    N)AnyLiteralMappingOptionalTYPE_CHECKINGUnionoverload)ODataV4Format   )Modelrest_discriminator
rest_field   )AnalysisContentKindContentFieldTypeDocumentFigureKindKnowledgeSourceKind)modelsc                       e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  edg d      Zeed<   	  edg d      Zee   ed	<   	  eg d
      Zee   ed<   	  eg d
      Zee   ed<   	  eg d
      Zee   ed<   	  eg d
      Zeeedf      ed<   	 edddddddeded	ee   dee   dee   dee   deeedf      ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )AnalysisContenta  Media content base class.

    You probably want to use the sub-classes and not this class directly. Known sub-classes are:
    AudioVisualContent, DocumentContent

    :ivar kind: Content kind. Required. Known values are: "document" and "audioVisual".
    :vartype kind: str or ~azure.ai.contentunderstanding.models.AnalysisContentKind
    :ivar mime_type: Detected MIME type of the content.  Ex. application/pdf, image/jpeg, etc.
     Required.
    :vartype mime_type: str
    :ivar analyzer_id: The analyzer that generated this content.
    :vartype analyzer_id: str
    :ivar category: Classified content category.
    :vartype category: str
    :ivar path: The path of the content in the input.
    :vartype path: str
    :ivar markdown: Markdown representation of the content.
    :vartype markdown: str
    :ivar fields: Extracted fields from the content.
    :vartype fields: dict[str, ~azure.ai.contentunderstanding.models.ContentField]
    __mapping__kindreadcreateupdatedeletequeryname
visibilitymimeType	mime_type
analyzerIdanalyzer_idr!   categorypathmarkdown_models.ContentFieldfieldsN)r%   r'   r(   r)   r+   returnc                     y N )selfr   r#   r%   r'   r(   r)   r+   s           m/root/aria/tools/markitdown-venv/lib/python3.12/site-packages/azure/ai/contentunderstanding/models/_models.py__init__zAnalysisContent.__init__P            mappingc                      yzl
        :param mapping: raw JSON to initialize the model.
        :type mapping: Mapping[str, Any]
        Nr/   r0   r5   s     r1   r2   zAnalysisContent.__init__]       r4   argskwargsc                 $    t        |   |i | y r.   superr2   r0   r:   r;   	__class__s      r1   r2   zAnalysisContent.__init__d       $)&)r4   )__name__
__module____qualname____doc__r   dictstr_Model__annotations__r   r   r   r#   r%   r   r'   r(   r)   r+   r	   r2   r   r   __classcell__r@   s   @r1   r   r      s   , &(Kc6k"'" OD#  V$SIs  ^!+&U"K#  4(BHhsm  '$BD(3-  0(BHhsm  2:DB;FHT#5567  - &*"&""&>B
 
 	

 c]
 3-
 sm
 3-
 c#99:;
 

 
 S 1 d  *c *S *T * *r4   r   c                   z    e Zd ZU dZ eg d      Zee   ed<   	  eg dd      Z	ee
   ed<   	  eg d      Zee   ed<   	  ed	g d
      Zee   ed<   	  edg d
      Zee   ed<   	 edddddddee   dee
   dee   dee   dee   ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )AnalysisInputa  Additional input to analyze.

    :ivar url: The URL of the input to analyze.  Only one of url or data should be specified.
    :vartype url: str
    :ivar data: Raw image bytes. Provide bytes-like object; do not base64-encode. Only one of url
     or data should be specified.
    :vartype data: bytes
    :ivar name: Name of the input.
    :vartype name: str
    :ivar mime_type: The MIME type of the input content.  Ex. application/pdf, image/jpeg, etc.
    :vartype mime_type: str
    :ivar content_range: Range of the input to analyze (ex. ``1-3,5,9-``).  Document content uses
     1-based page numbers, while audio visual content uses integer milliseconds.
    :vartype content_range: str
    r   r&   urlbase64)r!   formatdatar    r"   r   r#   rangecontent_rangeN)rN   rQ   r    r#   rS   r,   c                     y r.   r/   )r0   rN   rQ   r    r#   rS   s         r1   r2   zAnalysisInput.__init__        r4   r5   c                      yr7   r/   r8   s     r1   r2   zAnalysisInput.__init__   r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zAnalysisInput.__init__   rA   r4   )rB   rC   rD   rE   r   rN   r   rG   rI   rQ   bytesr    r#   rS   r	   r2   r   r   rJ   rK   s   @r1   rM   rM   h   sd     $BC#  Y&B8D(5/ $BD(3-  )$S Ix}  U#-!P$M8C= >  " $"#''+ c] uo	
 sm C=  } 
  S 1 d  *c *S *T * *r4   rM   c                       e Zd ZU dZ edg d      Zee   ed<   	  edg d      Z	ee   ed<   	  edg dd	
      Z
eej                     ed<   	  eg d      Zeee      ed<   	  edg d      Zee   ed<   	  eg d      Zed   ed<   	 eddddddded   dee   dee   deej                     deee      dee   ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )AnalysisResulta4  Analyze operation result.

    :ivar analyzer_id: The unique identifier of the analyzer.
    :vartype analyzer_id: str
    :ivar api_version: The version of the API used to analyze the document.
    :vartype api_version: str
    :ivar created_at: The date and time when the result was created.
    :vartype created_at: ~datetime.datetime
    :ivar warnings: Warnings encountered while analyzing the document.
    :vartype warnings: list[~azure.core.ODataV4Format]
    :ivar string_encoding:   The string encoding format for content spans in the response. Possible
     values are 'codePoint', 'utf16', and ``utf8``.  Default is ``codePoint``.").
    :vartype string_encoding: str
    :ivar contents: The extracted content. Required.
    :vartype contents: list[~azure.ai.contentunderstanding.models.AnalysisContent]
    r$   r   r   r%   
apiVersionapi_version	createdAtrfc3339r    r!   rP   
created_atr&   warningsstringEncodingstring_encodingz_models.AnalysisContentcontentsN)r%   r\   r`   ra   rc   r,   c                     y r.   r/   )r0   rd   r%   r\   r`   ra   rc   s          r1   r2   zAnalysisResult.__init__   s     r4   r5   c                      yr7   r/   r8   s     r1   r2   zAnalysisResult.__init__   r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zAnalysisResult.__init__   rA   r4   )rB   rC   rD   rE   r   r%   r   rG   rI   r\   r`   datetimera   listr
   rc   rd   r	   r2   r   r   rJ   rK   s   @r1   rZ   rZ      s   " ",&U"K#  1!+&U"K#  ?.8B/J**+ 
 9.8B/HhtM*+  =%/B&OXc] >0:B1Hd,-  +
 &*%)2626)-	 01	 c]		
 c]	 X../	 4./	 "#	 
	 	 S 1 d  *c *S *T * *r4   rZ   c                   X    e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  eg d      Zeed      ed<   	  eg d      Zee   ed	<   	  eg d      Zee   ed
<   	 edddddedeed      d	ee   d
ee   ddf
d       Zedeeef   ddfd       Zdededdf fdZ xZS )ContentFielday  Field extracted from the content.

    You probably want to use the sub-classes and not this class directly. Known sub-classes are:
    ArrayField, BooleanField, DateField, IntegerField, JsonField, NumberField, ObjectField,
    StringField, TimeField

    :ivar type: Semantic data type of the field value. Required. Known values are: "string",
     "date", "time", "number", "integer", "boolean", "array", "object", and "json".
    :vartype type: str or ~azure.ai.contentunderstanding.models.ContentFieldType
    :ivar spans: Span(s) associated with the field value in the markdown content.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar confidence: Confidence of predicting the field value.
    :vartype confidence: float
    :ivar source: Encoded source that identifies the position of the field value in the content.
    :vartype source: str
    r   typer   r   r&   _models.ContentSpanspans
confidencesourceN)rn   ro   rp   r,   c                     y r.   r/   )r0   rl   rn   ro   rp   s        r1   r2   zContentField.__init__       r4   r5   c                      yr7   r/   r8   s     r1   r2   zContentField.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zContentField.__init__"  rA   r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   rl   r   rn   r   ri   ro   floatrp   r	   r2   r   r   rJ   rK   s   @r1   rk   rk      sF   " &(Kc6k"'" OD# ]3=B4E8D./0  K",B#J  4&BFHSM  Y
 8<&* $  234	
 UO  
  S 1 d  *c *S *T * *r4   rk   c                   Z    e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  e	dg d      Zeej                     ed<   	  edg d      Zeed      ed	<   	 ed
d
d
d
ddedeed      dee   dee   d	eed      dd
fd       Zedeeef   dd
fd       Zdededd
f fdZ xZS )
ArrayFielda  Array field extracted from the content.

    :ivar type: Semantic data type of the field value. Required. Known values are: "string",
     "date", "time", "number", "integer", "boolean", "array", "object", and "json".
    :vartype type: str or ~azure.ai.contentunderstanding.models.ContentFieldType
    :ivar spans: Span(s) associated with the field value in the markdown content.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar confidence: Confidence of predicting the field value.
    :vartype confidence: float
    :ivar source: Encoded source that identifies the position of the field value in the content.
    :vartype source: str
    :ivar field_type: Semantic data type of the field value. Required. List of subfields of the
     same type.
    :vartype field_type: str or ~azure.ai.contentunderstanding.models.ARRAY
    :ivar value_array: Array field value.
    :vartype value_array: list[~azure.ai.contentunderstanding.models.ContentField]
    r   rl   r   r   
field_type
valueArrayr*   value_arrayN)rn   ro   rp   rz   rn   rm   ro   rp   r,   c                     y r.   r/   )r0   rl   rn   ro   rp   rz   s         r1   r2   zArrayField.__init__F  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zArrayField.__init__Q  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   ARRAYrx   r?   s      r1   r2   zArrayField.__init__X  s"    $)&)*00r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   rl   rx   r   r   r~   r   rz   r   ri   r	   ru   r2   r   r   rJ   rK   s   @r1   rw   rw   &  sP   $ &(Kc6k"'" OD# ]2D&  ^M  3NJ(../  N^:D&U;K$567  
 8<&* $>B  234	
 UO  d#9:; 
  S 1 d  1c 1S 1T 1 1r4   rw   array)discriminatorc                        e Zd ZU dZ edg d      Zeej                     e	d<   	  e
dg d      Zee	d<   	  e
dg d      Zee	d<   	  e
g d	      Zee   e	d
<   	  e
g d	      Zee   e	d<   	  e
dg d      Zeee      e	d<   	  e
dg d      Zeee      e	d<   	  e
dg d      Zeed      e	d<   	  e
g d	      Zeed      e	d<   	 edddddddddddddedededee   dee   dee   dee   deeedf      d
ee   dee   deee      deee      deed      deed      ddfd       Zed eeef   ddfd!       Zd"ed#eddf fd$Z xZS )%AudioVisualContenta  Audio visual content.  Ex. audio/wav, video/mp4.

    :ivar mime_type: Detected MIME type of the content.  Ex. application/pdf, image/jpeg, etc.
     Required.
    :vartype mime_type: str
    :ivar analyzer_id: The analyzer that generated this content.
    :vartype analyzer_id: str
    :ivar category: Classified content category.
    :vartype category: str
    :ivar path: The path of the content in the input.
    :vartype path: str
    :ivar markdown: Markdown representation of the content.
    :vartype markdown: str
    :ivar fields: Extracted fields from the content.
    :vartype fields: dict[str, ~azure.ai.contentunderstanding.models.ContentField]
    :ivar kind: Content kind. Required. Audio visual content, such as mp3, mp4, etc.
    :vartype kind: str or ~azure.ai.contentunderstanding.models.AUDIO_VISUAL
    :ivar start_time_ms: Start time of the content in milliseconds. Required.
    :vartype start_time_ms: int
    :ivar end_time_ms: End time of the content in milliseconds. Required.
    :vartype end_time_ms: int
    :ivar width: Width of each video frame in pixels, if applicable.
    :vartype width: int
    :ivar height: Height of each video frame in pixels, if applicable.
    :vartype height: int
    :ivar camera_shot_times_ms: List of camera shot changes in the video, represented by its
     timestamp in milliseconds.  Only if returnDetails is true.
    :vartype camera_shot_times_ms: list[int]
    :ivar key_frame_times_ms: List of key frames in the video, represented by its timestamp in
     milliseconds.  Only if returnDetails is true.
    :vartype key_frame_times_ms: list[int]
    :ivar transcript_phrases: List of transcript phrases.  Only if returnDetails is true.
    :vartype transcript_phrases: list[~azure.ai.contentunderstanding.models.TranscriptPhrase]
    :ivar segments: List of detected content segments.  Only if enableSegment is true.
    :vartype segments: list[~azure.ai.contentunderstanding.models.AudioVisualContentSegment]
    r   r   r   startTimeMsstart_time_ms	endTimeMsend_time_msr&   widthheightcameraShotTimesMscamera_shot_times_mskeyFrameTimesMskey_frame_times_mstranscriptPhrasesz_models.TranscriptPhrasetranscript_phrasesz!_models.AudioVisualContentSegmentsegmentsN)r%   r'   r(   r)   r+   r   r   r   r   r   r   r#   r%   r'   r(   r)   r+   r*   r,   c                     y r.   r/   )r0   r#   r   r   r%   r'   r(   r)   r+   r   r   r   r   r   r   s                  r1   r2   zAudioVisualContent.__init__  s    $ r4   r5   c                      yr7   r/   r8   s     r1   r2   zAudioVisualContent.__init__  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   AUDIO_VISUALr   r?   s      r1   r2   zAudioVisualContent.__init__  "    $)&)'44	r4   )rB   rC   rD   rE   r   r   r   r   r   rI   r   r   intr   r   r   r   r   ri   r   r   r   r	   rG   rF   r2   r   r   rJ   rK   s   @r1   r   r   ]  s   #J 7If  bQ  7RD'%22
3  RN#'VM3  ?!%TK  =%BE8C=  >&BFHSM  ?0: B1(49- ".8B/c+ EO BF&@!AB  FDNBEHht?@A  M &*"&""&>B# $4826IMHL!  	
  c] 3- sm 3- c#99:; }  'tCy1 %T#Y/ %T*D%EF  4 CDE!" 
# & S 1 d  5c 5S 5T 5 5r4   r   audioVisualc                   0    e Zd ZU dZ edg d      Zeed<   	  eg d      Zeed<   	  eg d      Z	ded	<   	  ed
g d      Z
eed<   	  edg d      Zeed<   	 ededed	ddededdfd       Zedeeef   ddfd       Zdededdf fdZ xZS )AudioVisualContentSegmenta5  Detected audio/visual content segment.

    :ivar segment_id: Segment identifier. Required.
    :vartype segment_id: str
    :ivar category: Classified content category. Required.
    :vartype category: str
    :ivar span: Span of the segment in the markdown content. Required.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar start_time_ms: Start time of the segment in milliseconds. Required.
    :vartype start_time_ms: int
    :ivar end_time_ms: End time of the segment in milliseconds. Required.
    :vartype end_time_ms: int
    	segmentIdr   r   
segment_idr&   r'   rm   spanr   r   r   r   r,   Nc                     y r.   r/   )r0   r   r'   r   r   r   s         r1   r2   z"AudioVisualContentSegment.__init__  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   z"AudioVisualContentSegment.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   z"AudioVisualContentSegment.__init__  rA   r4   )rB   rC   rD   rE   r   r   rG   rI   r'   r   r   r   r   r	   r2   r   r   rJ   rK   s   @r1   r   r     s*    !%TJ  (BHc  1",B#D
  A#'VM3  ?!%TK  =  	
 $   
  S 1 d  *c *S *T * *r4   r   c                   N    e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  e	dg d      Zeej                     ed<   	  edg d      Zee   ed<   	 ed	d	d	d	d
dedeed      dee   dee   dee   dd	fd       Zedeeef   dd	fd       Zdededd	f fdZ xZS )BooleanFielda  Boolean field extracted from the content.

    :ivar type: Semantic data type of the field value. Required. Known values are: "string",
     "date", "time", "number", "integer", "boolean", "array", "object", and "json".
    :vartype type: str or ~azure.ai.contentunderstanding.models.ContentFieldType
    :ivar spans: Span(s) associated with the field value in the markdown content.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar confidence: Confidence of predicting the field value.
    :vartype confidence: float
    :ivar source: Encoded source that identifies the position of the field value in the content.
    :vartype source: str
    :ivar field_type: Semantic data type of the field value. Required. Boolean value.
    :vartype field_type: str or ~azure.ai.contentunderstanding.models.BOOLEAN
    :ivar value_boolean: Boolean field value.
    :vartype value_boolean: bool
    r   rl   r   r   rx   valueBooleanvalue_booleanN)rn   ro   rp   r   rn   rm   ro   rp   r,   c                     y r.   r/   )r0   rl   rn   ro   rp   r   s         r1   r2   zBooleanField.__init__$  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zBooleanField.__init__/  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   BOOLEANrx   r?   s      r1   r2   zBooleanField.__init__6  "    $)&)*22r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   rl   rx   r   r   r   r   r   r   boolr	   ri   ru   r2   r   r   rJ   rK   s   @r1   r   r     sB   " &(Kc6k"'" OD# ]4FF  `O  5PJ(001  PI$.(W%M8D>  
 8<&* $(,  234	
 UO   ~ 
  S 1 d  3c 3S 3T 3 3r4   r   booleanc                       e Zd ZU dZ eddg      Zeed<   	  eg d      Ze	e   ed<   	  eg d      Z
e	eeef      ed	<   	  edg      Zeed
f   ed<   	  eddgd      Zej                  ed<   	  eddgd      Zej                  ed<   	  edg      Ze	ee      ed<   	  edddg      Ze	e   ed<   	  eddg      Ze	d   ed<   	  edddg      Ze	d   ed<   	  edddg      Ze	e   ed<   	  edddg      Ze	eedf      ed<   	  ed ddg      Ze	ed!      ed"<   	  eddg      Ze	eeef      ed#<   	  ed$dg      Ze	d%   ed&<   	 ed'd'd'd'd'd'd'd'd'd(	de	e   d	e	eeef      de	e   de	d   de	d   de	e   de	eedf      d"e	ed!      d#e	eeef      d)d'fd*       Zed+eee f   d)d'fd,       Zd-e d.e d)d'f fd/Z xZ!S )0ContentAnalyzera  Analyzer that extracts content and fields from multimodal documents.

    :ivar analyzer_id: The unique identifier of the analyzer. Required.
    :vartype analyzer_id: str
    :ivar description: A description of the analyzer.
    :vartype description: str
    :ivar tags: Tags associated with the analyzer.
    :vartype tags: dict[str, str]
    :ivar status: The status of the analyzer. Required. Known values are: "creating", "ready",
     "deleting", and "failed".
    :vartype status: str or ~azure.ai.contentunderstanding.models.ContentAnalyzerStatus
    :ivar created_at: The date and time when the analyzer was created. Required.
    :vartype created_at: ~datetime.datetime
    :ivar last_modified_at: The date and time when the analyzer was last modified. Required.
    :vartype last_modified_at: ~datetime.datetime
    :ivar warnings: Warnings encountered while creating the analyzer.
    :vartype warnings: list[~azure.core.ODataV4Format]
    :ivar base_analyzer_id: The analyzer to incrementally train from.
    :vartype base_analyzer_id: str
    :ivar config: Analyzer configuration settings.
    :vartype config: ~azure.ai.contentunderstanding.models.ContentAnalyzerConfig
    :ivar field_schema: The schema of fields to extracted.
    :vartype field_schema: ~azure.ai.contentunderstanding.models.ContentFieldSchema
    :ivar dynamic_field_schema: Indicates whether the result may contain additional fields outside
     of the defined schema.
    :vartype dynamic_field_schema: bool
    :ivar processing_location: The location where the data may be processed.  Defaults to global.
     Known values are: "geography", "dataZone", and "global".
    :vartype processing_location: str or ~azure.ai.contentunderstanding.models.ProcessingLocation
    :ivar knowledge_sources: Additional knowledge sources used to enhance the analyzer.
    :vartype knowledge_sources: list[~azure.ai.contentunderstanding.models.KnowledgeSource]
    :ivar models: Mapping of model roles to specific model names. Ex. { "completion": "gpt-4.1",
     "embedding": "text-embedding-3-large" }.
    :vartype models: dict[str, str]
    :ivar supported_models: Chat completion and embedding models supported by the analyzer.
    :vartype supported_models: ~azure.ai.contentunderstanding.models.SupportedModels
    r$   r   r   r%   r   r&   descriptiontagsz_models.ContentAnalyzerStatusstatusr]   r^   r_   r`   lastModifiedAtlast_modified_atra   baseAnalyzerIdr   base_analyzer_idz_models.ContentAnalyzerConfigconfigfieldSchemaz_models.ContentFieldSchemafield_schemadynamicFieldSchemadynamic_field_schemaprocessingLocationz_models.ProcessingLocationprocessing_locationknowledgeSourcesz_models.KnowledgeSourceknowledge_sourcesr   supportedModelsz_models.SupportedModelssupported_modelsN)	r   r   r   r   r   r   r   r   r   r,   c       	              y r.   r/   )
r0   r   r   r   r   r   r   r   r   r   s
             r1   r2   zContentAnalyzer.__init__       r4   r5   c                      yr7   r/   r8   s     r1   r2   zContentAnalyzer.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zContentAnalyzer.__init__  rA   r4   )"rB   rC   rD   rE   r   r%   rG   rI   r   r   r   rF   r   r   r`   rh   r   ra   ri   r
   r   r   r   r   r   r   r   r   r   r	   r2   r   r   rJ   rK   s   @r1   r   r   ;  s^   $L "|IKI:!+B"K#  )%/B&D(4S>
"  -:D8;FE#667 $.fXi%J!!  E*46(9+h''  K.8VH.MHhtM*+M;&068*<'hsm  48BH%9FH45  +;E'9<L(78  -+5!vx.@,(4.  d,&(9KL %-I(I"JK 5CMVX,>Dx%> ?@  E'1fh=O'PFHT#s(^$P5<FF8=h89  J &*)-*.<@?C/3RVGK+/ c] tCH~&	
 #3- 89 ;< 'tn &eC1M,M&NO $D)B$CD c3h( 
  S 1 d  *c *S *T * *r4   r   c                   l    e Zd ZU dZ eg d      Zeed<   	  eg d      Ze	edf   ed<   	  eg d      Z
ee   ed<   	  eg d      Zed   ed	<   	  eg d      Zed
   ed<   	 edddddede	edf   dee   d	ed   ded
   ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )%ContentAnalyzerAnalyzeOperationStatusa  Provides status details for analyze operations.

    :ivar id: The unique ID of the operation. Required.
    :vartype id: str
    :ivar status: The status of the operation. Required. Known values are: "NotStarted", "Running",
     "Succeeded", "Failed", and "Canceled".
    :vartype status: str or ~azure.ai.contentunderstanding.models.OperationState
    :ivar error: Error object that describes the error when status is "Failed".
    :vartype error: ~azure.core.ODataV4Format
    :ivar result: The result of the operation.
    :vartype result: ~azure.ai.contentunderstanding.models.AnalysisResult
    :ivar usage: Usage details of the analyze operation.
    :vartype usage: ~azure.ai.contentunderstanding.models.UsageDetails
    r   r&   id_models.OperationStater   errorz_models.AnalysisResultresult_models.UsageDetailsusageNr   r   r   r,   c                     y r.   r/   r0   r   r   r   r   r   s         r1   r2   z.ContentAnalyzerAnalyzeOperationStatus.__init__  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   z.ContentAnalyzerAnalyzeOperationStatus.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   z.ContentAnalyzerAnalyzeOperationStatus.__init__  rA   r4   rB   rC   rD   rE   r   r   rG   rI   r   r   r   r   r
   r   r   r	   r2   r   r   rJ   rK   s   @r1   r   r     s]    $STBT33=B4FE#//0 5%/B&E8M"  K1;B2FH-.  '.8B/E8*+  2 *.5926  c334	
 & 12 ./ 
  S 1 d  *c *S *T * *r4   r   c            $       *    e Zd ZU dZ edg d      Zee   ed<   	  eg d      Z	ee
e      ed<   	  edg d      Zee   ed	<   	  ed
g d      Zee   ed<   	  edg d      Zee   ed<   	  edg d      Zee   ed<   	  edg d      Zee   ed<   	  edg d      Zeeedf      ed<   	  edg d      Zeeedf      ed<   	  edg d      Zeeedf      ed<   	  edg d      Zee   ed<   	  edg d      Zee   ed<   	  edg d      Zeeed f      ed!<   	  ed"g d      Zee   ed#<   	  ed$g d      Zee   ed%<   	  ed&g d      Zee   ed'<   	 ed(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d)dee   dee
e      d	ee   dee   dee   dee   dee   deeedf      deeedf      deeedf      dee   dee   d!eeed f      d#ee   d%ee   d'ee   d*d(f"d+       Zed,eeef   d*d(fd-       Zd.ed/ed*d(f fd0Z xZ S )1ContentAnalyzerConfigaF	  Configuration settings for an analyzer.

    :ivar return_details: Return all content details.
    :vartype return_details: bool
    :ivar locales: List of locale hints for speech transcription.
    :vartype locales: list[str]
    :ivar enable_ocr: Enable optical character recognition (OCR).
    :vartype enable_ocr: bool
    :ivar enable_layout: Enable layout analysis.
    :vartype enable_layout: bool
    :ivar enable_figure_description: Enable generation of figure description.
    :vartype enable_figure_description: bool
    :ivar enable_figure_analysis: Enable analysis of figures, such as charts and diagrams.
    :vartype enable_figure_analysis: bool
    :ivar enable_formula: Enable mathematical formula detection.
    :vartype enable_formula: bool
    :ivar table_format: Representation format of tables in analyze result markdown. Known values
     are: "html" and "markdown".
    :vartype table_format: str or ~azure.ai.contentunderstanding.models.TableFormat
    :ivar chart_format: Representation format of charts in analyze result markdown. Known values
     are: "chartJs" and "markdown".
    :vartype chart_format: str or ~azure.ai.contentunderstanding.models.ChartFormat
    :ivar annotation_format: Representation format of annotations in analyze result markdown. Known
     values are: "none" and "markdown".
    :vartype annotation_format: str or ~azure.ai.contentunderstanding.models.AnnotationFormat
    :ivar disable_face_blurring: Disable the default blurring of faces for privacy while processing
     the content.
    :vartype disable_face_blurring: bool
    :ivar estimate_field_source_and_confidence: Return field grounding source and confidence.
    :vartype estimate_field_source_and_confidence: bool
    :ivar content_categories: Map of categories to classify the input content(s) against.
    :vartype content_categories: dict[str,
     ~azure.ai.contentunderstanding.models.ContentCategoryDefinition]
    :ivar enable_segment: Enable segmentation of the input by contentCategories.
    :vartype enable_segment: bool
    :ivar segment_per_page: Force segmentation of document content by page.
    :vartype segment_per_page: bool
    :ivar omit_content: Omit the content for this analyzer from analyze result. Only return
     content(s) from additional analyzers specified in contentCategories, if any.
    :vartype omit_content: bool
    returnDetailsr   r   return_detailsr&   locales	enableOcr
enable_ocrenableLayoutenable_layoutenableFigureDescriptionenable_figure_descriptionenableFigureAnalysisenable_figure_analysisenableFormulaenable_formulatableFormatz_models.TableFormattable_formatchartFormatz_models.ChartFormatchart_formatannotationFormatz_models.AnnotationFormatannotation_formatdisableFaceBlurringdisable_face_blurring estimateFieldSourceAndConfidence$estimate_field_source_and_confidencecontentCategoriesz!_models.ContentCategoryDefinitioncontent_categoriesenableSegmentenable_segmentsegmentPerPagesegment_per_pageomitContentomit_contentN)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r,   c                     y r.   r/   )r0   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s                    r1   r2   zContentAnalyzerConfig.__init__i  s    , r4   r5   c                      yr7   r/   r8   s     r1   r2   zContentAnalyzerConfig.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zContentAnalyzerConfig.__init__  rA   r4   )!rB   rC   rD   rE   r   r   r   r   rI   r   ri   rG   r   r   r   r   r   r   r   r   r   r   r   r   rF   r   r   r   r	   r2   r   r   rJ   rK   s   @r1   r   r     s   (T &0)X&NHTN  &#-B$GXd3i   9!+%T"J  6$.(W%M8D>  "0:&B1x~  3-7#B.HTN  C%/)X&NHTN  1@J'VAL(5&;!;<= @J'VAL(5&;!;<= JTBKxc+E&E FG ,6"B-8D>  Z;E/B<((4.  8$F	
 c+N&N!OP  F%/)X&NHTN  A'1B(htn  :#-'V$L(4. :  *.'+%)(,4815)-DHDHNR04?C )-+/'+) ! $s)$	
 TN  ~ $,D> !) ! uS*?%?@A uS*?%?@A $E#/I*I$JK  (~ /7tn %99:
$ !%& #4.'( tn)* 
+ . S 1 d  *c *S *T * *r4   r   c                   l    e Zd ZU dZ eg d      Zeed<   	  eg d      Ze	edf   ed<   	  eg d      Z
ee   ed<   	  eg d      Zed   ed	<   	  eg d      Zed
   ed<   	 edddddede	edf   dee   d	ed   ded
   ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )ContentAnalyzerOperationStatusa  Provides status details for analyzer creation operations.

    :ivar id: The unique ID of the operation. Required.
    :vartype id: str
    :ivar status: The status of the operation. Required. Known values are: "NotStarted", "Running",
     "Succeeded", "Failed", and "Canceled".
    :vartype status: str or ~azure.ai.contentunderstanding.models.OperationState
    :ivar error: Error object that describes the error when status is "Failed".
    :vartype error: ~azure.core.ODataV4Format
    :ivar result: The result of the operation.
    :vartype result: ~azure.ai.contentunderstanding.models.ContentAnalyzer
    :ivar usage: Usage details of the analyzer creation operation.
    :vartype usage: ~azure.ai.contentunderstanding.models.UsageDetails
    r   r&   r   r   r   r   _models.ContentAnalyzerr   r   r   Nr   r,   c                     y r.   r/   r   s         r1   r2   z'ContentAnalyzerOperationStatus.__init__  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   z'ContentAnalyzerOperationStatus.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   z'ContentAnalyzerOperationStatus.__init__  rA   r4   r   rK   s   @r1   r   r     s]    $STBT33=B4FE#//0 5%/B&E8M"  K2<B3FH./  '.8B/E8*+  < *.6:26  c334	
 & 23 ./ 
  S 1 d  *c *S *T * *r4   r   c            
           e Zd ZU dZ eg d      Zee   ed<   	  edg d      Z	ee   ed<   	  eg d      Z
ed   ed	<   	 ed
d
d
ddee   dee   d	ed   dd
fd       Zedeeef   dd
fd       Zdededd
f fdZ xZS )ContentCategoryDefinitiona  Content category definition.

    :ivar description: The description of the category.
    :vartype description: str
    :ivar analyzer_id: Optional analyzer used to process the content.
    :vartype analyzer_id: str
    :ivar analyzer: Optional inline definition of analyzer used to process the content.
    :vartype analyzer: ~azure.ai.contentunderstanding.models.ContentAnalyzer
    r   r&   r   r$   r   r%   r   analyzerN)r   r%   r   r,   c                     y r.   r/   )r0   r   r%   r   s       r1   r2   z"ContentCategoryDefinition.__init__       r4   r5   c                      yr7   r/   r8   s     r1   r2   z"ContentCategoryDefinition.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   z"ContentCategoryDefinition.__init__  rA   r4   )rB   rC   rD   rE   r   r   r   rG   rI   r%   r   r	   r2   r   r   rJ   rK   s   @r1   r   r     s    ",B"K#  +!+&U"K#  94>B5Hh01  N &*%)8< c] c]	
 45 
  S 1 d  *c *S *T * *r4   r   c                       e Zd ZU dZ eg d      Zeeedf      e	d<   	  eg d      Z
eeedf      e	d<   	  eg d      Zee   e	d<   	  ed	g d
      Zed   e	d<   	  eg d      Zeeedf      e	d<   	  eg d      Zeee      e	d<   	  eg d      Zeee      e	d<   	  edg d
      Zeeeef      e	d<   	  edg d
      Zee   e	d<   	  edg d
      Zee   e	d<   	 eddddddddddd
deeedf      deeedf      dee   ded   deeedf      deee      deee      deeeef      dee   dee   ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )ContentFieldDefinitionac  Definition of the field using a JSON Schema like syntax.

    :ivar method: Generation method. Known values are: "generate", "extract", and "classify".
    :vartype method: str or ~azure.ai.contentunderstanding.models.GenerationMethod
    :ivar type: Semantic data type of the field value. Known values are: "string", "date", "time",
     "number", "integer", "boolean", "array", "object", and "json".
    :vartype type: str or ~azure.ai.contentunderstanding.models.ContentFieldType
    :ivar description: Field description.
    :vartype description: str
    :ivar item_definition: Field type schema of each array element, if type is array.
    :vartype item_definition: ~azure.ai.contentunderstanding.models.ContentFieldDefinition
    :ivar properties: Named sub-fields, if type is object.
    :vartype properties: dict[str, ~azure.ai.contentunderstanding.models.ContentFieldDefinition]
    :ivar examples: Examples of field values.
    :vartype examples: list[str]
    :ivar enum: Enumeration of possible field values.
    :vartype enum: list[str]
    :ivar enum_descriptions: Descriptions for each enumeration value.
    :vartype enum_descriptions: dict[str, str]
    :ivar ref: Reference to another field definition.
    :vartype ref: str
    :ivar estimate_source_and_confidence: Return grounding source and confidence.
    :vartype estimate_source_and_confidence: bool
    r   r&   z_models.GenerationMethodmethodz_models.ContentFieldTyperl   r   itemsr   _models.ContentFieldDefinitionitem_definition
propertiesexamplesenumenumDescriptionsenum_descriptionsz$refrefestimateSourceAndConfidenceestimate_source_and_confidenceN)
r  rl   r   r  r  r  r	  r  r  r  r,   c       
              y r.   r/   )r0   r  rl   r   r  r  r  r	  r  r  r  s              r1   r2   zContentFieldDefinition.__init__8  s     r4   r5   c                      yr7   r/   r8   s     r1   r2   zContentFieldDefinition.__init__H  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zContentFieldDefinition.__init__O  rA   r4   )rB   rC   rD   rE   r   r  r   r   rG   rI   rl   r   r  r  rF   r  ri   r	  r  r  r  r   r	   r2   r   r   rJ   rK   s   @r1   r  r    s   2 @JB@FHU3 ::;<  \=GB>D(5889
: S!+B"K#  BL!PCOX>?  EHRBIJc#CCDE  /$.B%HhtCy!  $ *B!D(49
  02<B3xS#X/  3# OC#  15?*B6"HTN  2 DHAE%)FJLP(,$(6:!9= s$>>?@ uS"<<=>	
 c] ""BC T#'G"GHI 49% tCy! $DcN3 c] )1 
  S 1 d  *c *S *T * *r4   r  c                   Z    e Zd ZU dZ eddg      Zee   ed<   	  eddg      Z	ee   ed<   	  eddg      Z
eedf   ed<   	  eddg      Zeeedf      ed	<   	 ed
d
d
ddeedf   dee   dee   d	eeedf      dd
f
d       Zedeeef   dd
fd       Zdededd
f fdZ xZS )ContentFieldSchemaa&  Schema of fields to be extracted from documents.

    :ivar name: The name of the field schema.
    :vartype name: str
    :ivar description: A description of the field schema.
    :vartype description: str
    :ivar fields: The fields defined in the schema. Required.
    :vartype fields: dict[str, ~azure.ai.contentunderstanding.models.ContentFieldDefinition]
    :ivar definitions: Additional definitions referenced by the fields in the schema.
    :vartype definitions: dict[str, ~azure.ai.contentunderstanding.models.ContentFieldDefinition]
    r   r   r&   r    r   r  r+   definitionsN)r    r   r  r,   c                     y r.   r/   )r0   r+   r    r   r  s        r1   r2   zContentFieldSchema.__init__m  rr   r4   r5   c                      yr7   r/   r8   s     r1   r2   zContentFieldSchema.__init__w  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zContentFieldSchema.__init__~  rA   r4   )rB   rC   rD   rE   r   r    r   rG   rI   r   r+   rF   r  r	   r2   r   r   rJ   rK   s   @r1   r  r  S  sU   
 %0BCD(3-C'!+7I!JK#J,:DH%;FD667  6ISH%JK$s$DDEF  I
 #%)MQ S::; sm	
 c] d3(H#HIJ 
  S 1 d  *c *S *T * *r4   r  c                        e Zd ZU dZ eg d      Zeed<   	  eg d      Zeed<   	 e	dededdfd       Z
e	d	eeef   ddfd
       Z
dededdf fdZ
 xZS )ContentSpanaT  Position of the element in markdown, specified as a character offset and length.

    :ivar offset: Starting position (0-indexed) of the element in markdown, specified in
     characters. Required.
    :vartype offset: int
    :ivar length: Length of the element in markdown, specified in characters. Required.
    :vartype length: int
    r   r&   offsetlengthr,   Nc                     y r.   r/   )r0   r  r  s      r1   r2   zContentSpan.__init__       r4   r5   c                      yr7   r/   r8   s     r1   r2   zContentSpan.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zContentSpan.__init__  rA   r4   )rB   rC   rD   rE   r   r  r   rI   r  r	   r2   r   rG   r   rJ   rK   s   @r1   r  r    s     (WXFCXf(WXFCXO  	
 
  S 1 d  *c *S *T * *r4   r  c                        e Zd ZU dZ edg d      Zeeef   ed<   	 e	deeef   ddfd       Z
e	d	eeef   ddfd
       Z
dededdf fdZ
 xZS )ContentUnderstandingDefaultsat  Default settings for this Content Understanding resource.

    :ivar model_deployments: Specify the default mapping of model names to LLM/embedding
     deployments in Microsoft Foundry. For details and current semantics, see
     `https://aka.ms/cudoc-quickstart-rest <https://aka.ms/cudoc-quickstart-rest>`_. Required.
    :vartype model_deployments: dict[str, str]
    modelDeployments)r   r   r   r   model_deploymentsr,   Nc                     y r.   r/   )r0   r#  s     r1   r2   z%ContentUnderstandingDefaults.__init__      
 r4   r5   c                      yr7   r/   r8   s     r1   r2   z%ContentUnderstandingDefaults.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   z%ContentUnderstandingDefaults.__init__  rA   r4   )rB   rC   rD   rE   r   r#  rF   rG   rI   r	   r2   r   r   rJ   rK   s   @r1   r!  r!    s     )3,H)tCH~ <   S> 
	  S 1 d  *c *S *T * *r4   r!  c            	           e Zd ZU dZ eg d      Zeed<   	  edg d      Zeed<   	  edg dd	
      Z	e
j                  ed<   	 ededede
j                  ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )CopyAuthorizationa  Copy authorization details for cross-resource copy.

    :ivar source: Full path of the source analyzer. Required.
    :vartype source: str
    :ivar target_azure_resource_id: Azure resource ID of the target location to copy to. Required.
    :vartype target_azure_resource_id: str
    :ivar expires_at: Date/time when the copy authorization expires. Required.
    :vartype expires_at: ~datetime.datetime
    r   r&   rp   targetAzureResourceIdr   target_azure_resource_id	expiresAtr^   r_   
expires_atr,   Nc                     y r.   r/   )r0   rp   r+  r-  s       r1   r2   zCopyAuthorization.__init__  r   r4   r5   c                      yr7   r/   r8   s     r1   r2   zCopyAuthorization.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zCopyAuthorization.__init__  rA   r4   )rB   rC   rD   rE   r   rp   rG   rI   r+  r-  rh   r	   r2   r   r   rJ   rK   s   @r1   r)  r)    s     (WXFCX5$.$B%c  I$.B%J!! 
 C  #&	
 %% 
  S 1 d  *c *S *T * *r4   r)  c                   v    e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  e	dg d      Zeej                     ed<   	  edg d      Zeej&                     ed<   	 ed	d	d	d	d
dedeed      dee   dee   deej&                     dd	fd       Zedeeef   dd	fd       Zdededd	f fdZ xZS )	DateFielda  Date field extracted from the content.

    :ivar type: Semantic data type of the field value. Required. Known values are: "string",
     "date", "time", "number", "integer", "boolean", "array", "object", and "json".
    :vartype type: str or ~azure.ai.contentunderstanding.models.ContentFieldType
    :ivar spans: Span(s) associated with the field value in the markdown content.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar confidence: Confidence of predicting the field value.
    :vartype confidence: float
    :ivar source: Encoded source that identifies the position of the field value in the content.
    :vartype source: str
    :ivar field_type: Semantic data type of the field value. Required. Date, normalized to ISO 8601
     (YYYY-MM-DD) format.
    :vartype field_type: str or ~azure.ai.contentunderstanding.models.DATE
    :ivar value_date: Date field value, in ISO 8601 (YYYY-MM-DD) format.
    :vartype value_date: ~datetime.date
    r   rl   r   r   rx   	valueDate
value_dateN)rn   ro   rp   r4  rn   rm   ro   rp   r,   c                     y r.   r/   )r0   rl   rn   ro   rp   r4  s         r1   r2   zDateField.__init__  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDateField.__init__  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   DATErx   r?   s      r1   r2   zDateField.__init__&  "    $)&)*//r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   rl   rx   r   r   r8  r   r4  r   rh   dater	   ri   ru   r2   r   r   rJ   rK   s   @r1   r2  r2    sN   $ &(Kc6k"'" OD# ]1C  ]L  2MJ(--.  M*4%T+J'  =
 8<&* $.2  234	
 UO  X]]+ 
  S 1 d  0c 0S 0T 0 0r4   r2  r:  c                       e Zd ZU dZ eg d      Zeed<   	  eg d      Ze	edf   ed<   	  eg d      Z
eed      ed<   	  eg d      Zee   ed	<   	  eg d      Zeed
      ed<   	  eg d      Zee   ed<   	  edg dd      Zeej"                     ed<   	  edg dd      Zeej"                     ed<   	  eg d      Zeee      ed<   	 edddddddddede	edf   deed      d	ee   deed
      dee   deej"                     deej"                     deee      ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )DocumentAnnotational  Annotation in a document, such as a strikethrough or a comment.

    :ivar id: Annotation identifier. Required.
    :vartype id: str
    :ivar kind: Annotation kind. Required. Known values are: "highlight", "strikethrough",
     "underline", "italic", "bold", "circle", and "note".
    :vartype kind: str or ~azure.ai.contentunderstanding.models.DocumentAnnotationKind
    :ivar spans: Spans of the content associated with the annotation.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar source: Position of the annotation.
    :vartype source: str
    :ivar comments: Comments associated with the annotation.
    :vartype comments: list[~azure.ai.contentunderstanding.models.DocumentAnnotationComment]
    :ivar author: Annotation author.
    :vartype author: str
    :ivar created_at: Date and time when the annotation was created.
    :vartype created_at: ~datetime.datetime
    :ivar last_modified_at: Date and time when the annotation was last modified.
    :vartype last_modified_at: ~datetime.datetime
    :ivar tags: Tags associated with the annotation.
    :vartype tags: list[str]
    r   r&   r   z_models.DocumentAnnotationKindr   rm   rn   rp   z!_models.DocumentAnnotationCommentcommentsauthorr]   r^   r_   r`   r   r   r   N)rn   rp   r=  r>  r`   r   r   r,   c       	              y r.   r/   )
r0   r   r   rn   rp   r=  r>  r`   r   r   s
             r1   r2   zDocumentAnnotation.__init__k  r   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentAnnotation.__init__z  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentAnnotation.__init__  rA   r4   )rB   rC   rD   rE   r   r   rG   rI   r   r   rn   r   ri   rp   r=  r>  r`   rh   r   r   r	   r2   r   r   rJ   rK   s   @r1   r<  r<  +  sZ   . $STBT*9CB:D%55
6 83=B4E8D./0  ?&BFHSM  &DNBEHht?@A  3&BFHSM  .8B/J**+ 
 94>B5hx001 
 ? *B!D(49
  / 8< $HL $268<$(  C99:	
 234  4 CDE  X../ #8#4#45 tCy! 
  S 1 d  *c *S *T * *r4   r<  c                       e Zd ZU dZ eg d      Zeed<   	  eg d      Ze	e   ed<   	  edg dd      Z
e	ej                     ed	<   	  ed
g dd      Ze	ej                     ed<   	  eg d      Ze	ee      ed<   	 eddddddede	e   d	e	ej                     de	ej                     de	ee      ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )DocumentAnnotationCommenta  Comment associated with a document annotation.

    :ivar message: Comment message in Markdown. Required.
    :vartype message: str
    :ivar author: Author of the comment.
    :vartype author: str
    :ivar created_at: Date and time when the comment was created.
    :vartype created_at: ~datetime.datetime
    :ivar last_modified_at: Date and time when the comment was last modified.
    :vartype last_modified_at: ~datetime.datetime
    :ivar tags: Tags associated with the comment.
    :vartype tags: list[str]
    r   r&   messager>  r]   r^   r_   r`   r   r   r   N)r>  r`   r   r   r,   c                     y r.   r/   )r0   rD  r>  r`   r   r   s         r1   r2   z"DocumentAnnotationComment.__init__  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   z"DocumentAnnotationComment.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   z"DocumentAnnotationComment.__init__  rA   r4   )rB   rC   rD   rE   r   rD  rG   rI   r>  r   r`   rh   r   r   ri   r	   r2   r   r   rJ   rK   s   @r1   rC  rC    s    BGS  1&BFHSM  !.8B/J**+ 
 64>B5hx001 
 < *B!D(49
  ,
 !%268<$(  	
 X../ #8#4#45 tCy! 
  S 1 d  *c *S *T * *r4   rC  c                   l    e Zd ZU dZ eg d      Zeedf   ed<   	  eg d      Z	eed<   	  eg d      Z
ee   ed<   	  eg d      Zed   ed	<   	  eg d      Zee   ed
<   	 edddddeedf   dedee   d	ed   d
ee   ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )DocumentBarcodea  Barcode in a document.

    :ivar kind: Barcode kind. Required. Known values are: "QRCode", "PDF417", "UPCA", "UPCE",
     "Code39", "Code128", "EAN8", "EAN13", "DataBar", "Code93", "Codabar", "DataBarExpanded", "ITF",
     "MicroQRCode", "Aztec", "DataMatrix", and "MaxiCode".
    :vartype kind: str or ~azure.ai.contentunderstanding.models.DocumentBarcodeKind
    :ivar value: Barcode value. Required.
    :vartype value: str
    :ivar source: Encoded source that identifies the position of the barcode in the content.
    :vartype source: str
    :ivar span: Span of the barcode in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar confidence: Confidence of predicting the barcode.
    :vartype confidence: float
    r   r&   z_models.DocumentBarcodeKindr   valuerp   rm   r   ro   Nrp   r   ro   r,   c                     y r.   r/   r0   r   rJ  rp   r   ro   s         r1   r2   zDocumentBarcode.__init__  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentBarcode.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentBarcode.__init__  rA   r4   rB   rC   rD   rE   r   r   r   rG   rI   rJ  rp   r   r   ro   ru   r	   r2   r   r   rJ   rK   s   @r1   rI  rI    s[     7AB7D%22
3 d 'VWE3W"&BFHSM  U,6B-D((
)  7",B#J  0 !%04&* C667 	
  ,- UO 
  S 1 d  *c *S *T * *r4   rI  c                   >    e Zd ZU dZ eg d      Zeed<   	  eg d      Ze	e   ed<   	  eg d      Z
e	d   ed<   	  eg d      Ze	ee      ed<   	 ed	d	d	d
dede	e   de	d   de	ee      dd	f
d       Zedeeef   dd	fd       Zdededd	f fdZ xZS )DocumentCaptiona  Caption of a table or figure.

    :ivar content: Content of the caption. Required.
    :vartype content: str
    :ivar source: Encoded source that identifies the position of the caption in the content.
    :vartype source: str
    :ivar span: Span of the caption in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar elements: Child elements of the caption.
    :vartype elements: list[str]
    r   r&   contentrp   rm   r   elementsNrp   r   rT  r,   c                     y r.   r/   r0   rS  rp   r   rT  s        r1   r2   zDocumentCaption.__init__  rr   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentCaption.__init__'  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentCaption.__init__.  rA   r4   rB   rC   rD   rE   r   rS  rG   rI   rp   r   r   rT  ri   r	   r2   r   r   rJ   rK   s   @r1   rR  rR    s.   
 BGS  ,&BFHSM  U,6B-D((
)  7$.B%HhtCy!  )
 !%04(,  	
 ,- 49% 
  S 1 d  *c *S *T * *r4   rR  c                   n    e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  eg d      Zeed<   	  eg d      Zee   ed<   	  eg d      Zed	   ed
<   	  eg d      Zeee      ed<   	  eg d      Zed   ed<   	  eg d      Zeed      ed<   	  eg d      Zee   ed<   	  eg d      Zeeedf      ed<   	 edddddddddededee   d
ed	   deee      ded   deed      dee   deeedf      ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )DocumentFigureaA  Figure in a document.

    You probably want to use the sub-classes and not this class directly. Known sub-classes are:
    DocumentChartFigure, DocumentMermaidFigure

    :ivar kind: Figure kind. Required. Known values are: "unknown", "chart", and "mermaid".
    :vartype kind: str or ~azure.ai.contentunderstanding.models.DocumentFigureKind
    :ivar id: Figure identifier. Required.
    :vartype id: str
    :ivar source: Encoded source that identifies the position of the figure in the content.
    :vartype source: str
    :ivar span: Span of the figure in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar elements: Child elements of the figure, excluding any caption or footnotes.
    :vartype elements: list[str]
    :ivar caption: Figure caption.
    :vartype caption: ~azure.ai.contentunderstanding.models.DocumentCaption
    :ivar footnotes: List of figure footnotes.
    :vartype footnotes: list[~azure.ai.contentunderstanding.models.DocumentFootnote]
    :ivar description: Description of the figure.
    :vartype description: str
    :ivar role: Semantic role of the figure. Known values are: "pageHeader", "pageFooter",
     "pageNumber", "title", "sectionHeading", "footnote", and "formulaBlock".
    :vartype role: str or ~azure.ai.contentunderstanding.models.SemanticRole
    r   r   r   r   r&   r   rp   rm   r   rT  _models.DocumentCaptioncaption_models.DocumentFootnote	footnotesr   _models.SemanticRoleroleNrp   r   rT  r^  r`  r   rb  r,   c       	              y r.   r/   )
r0   r   r   rp   r   rT  r^  r`  r   rb  s
             r1   r2   zDocumentFigure.__init__r  r   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentFigure.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentFigure.__init__  rA   r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   r   r   r   rp   r   r   rT  ri   r^  r`  r   rb  r   r	   r2   r   r   rJ   rK   s   @r1   r\  r\  2  sH   4 &(Kc6k"'" OD#  \$STBT&&BFHSM  T,6B-D((
)  6$.B%HhtCy!  L3=B4GX/0  <FB=Ix789  $!+B"K#  %9CB:D(5445
6 K  !%04(,7;@D%)=A  	
  ,- 49% 34 D!;<= c] uS"889: 
  S 1 d  *c *S *T * *r4   r\  c                   V    e Zd ZU dZ edg d      Zeej                     e	d<   	  e
g d      Zeeef   e	d<   	 eddddddddd	edeeef   d
ee   ded   deee      ded   deed      dee   deeedf      ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )DocumentChartFigurea  Figure containing a chart, such as a bar chart, line chart, or pie chart.

    :ivar id: Figure identifier. Required.
    :vartype id: str
    :ivar source: Encoded source that identifies the position of the figure in the content.
    :vartype source: str
    :ivar span: Span of the figure in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar elements: Child elements of the figure, excluding any caption or footnotes.
    :vartype elements: list[str]
    :ivar caption: Figure caption.
    :vartype caption: ~azure.ai.contentunderstanding.models.DocumentCaption
    :ivar footnotes: List of figure footnotes.
    :vartype footnotes: list[~azure.ai.contentunderstanding.models.DocumentFootnote]
    :ivar description: Description of the figure.
    :vartype description: str
    :ivar role: Semantic role of the figure. Known values are: "pageHeader", "pageFooter",
     "pageNumber", "title", "sectionHeading", "footnote", and "formulaBlock".
    :vartype role: str or ~azure.ai.contentunderstanding.models.SemanticRole
    :ivar kind: Figure kind. Required. Figure containing a chart, such as a bar chart, line chart,
     or pie chart.
    :vartype kind: str or ~azure.ai.contentunderstanding.models.CHART
    :ivar content: Chart content represented using `Chart.js config
     <https://www.chartjs.org/docs/latest/configuration/>`_. Required.
    :vartype content: dict[str, any]
    r   r   r   r&   rS  Nrc  r   rp   r   rm   rT  r^  r]  r`  r_  r   rb  ra  r,   c       	              y r.   r/   
r0   r   rS  rp   r   rT  r^  r`  r   rb  s
             r1   r2   zDocumentChartFigure.__init__  r   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentChartFigure.__init__  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   CHARTr   r?   s      r1   r2   zDocumentChartFigure.__init__  s"    $)&)&,,	r4   )rB   rC   rD   rE   r   r   r   r   rm  rI   r   rS  rF   rG   r   r	   r   ri   r   r2   r   rJ   rK   s   @r1   rh  rh    ss   6 /Af  ZI  /JD'$**
+  J(BGT#s(^ J  !%04(,7;@D%)=A  c3h	
  ,- 49% 34 D!;<= c] uS"889: 
  S 1 d  -c -S -T - -r4   rh  chartc            &           e Zd ZU dZ edg d      Zeej                     e	d<   	  e
dg d      Zee	d<   	  e
dg d      Zee	d<   	  e
g d	      Zeeed
f      e	d<   	  e
g d	      Zeed      e	d<   	  e
g d	      Zeed      e	d<   	  e
g d	      Zeed      e	d<   	  e
g d	      Zeed      e	d<   	  e
g d	      Zeed      e	d<   	  e
g d	      Zeed      e	d<   	  e
g d	      Zeed      e	d<   	  e
g d	      Zeed      e	d<   	 eddddddddddddddddedededee   d ee   d!ee   d"ee   d#eeed$f      deeed
f      deed      deed      deed      deed      deed      deed      deed      deed      d%df$d&       Zed'eeef   d%dfd(       Zd)ed*ed%df fd+Z xZ S ),DocumentContenta
  Document content.  Ex. text/plain, application/pdf, image/jpeg.

    :ivar mime_type: Detected MIME type of the content.  Ex. application/pdf, image/jpeg, etc.
     Required.
    :vartype mime_type: str
    :ivar analyzer_id: The analyzer that generated this content.
    :vartype analyzer_id: str
    :ivar category: Classified content category.
    :vartype category: str
    :ivar path: The path of the content in the input.
    :vartype path: str
    :ivar markdown: Markdown representation of the content.
    :vartype markdown: str
    :ivar fields: Extracted fields from the content.
    :vartype fields: dict[str, ~azure.ai.contentunderstanding.models.ContentField]
    :ivar kind: Content kind. Required. Document content, such as pdf, image, txt, etc.
    :vartype kind: str or ~azure.ai.contentunderstanding.models.DOCUMENT
    :ivar start_page_number: Start page number (1-indexed) of the content. Required.
    :vartype start_page_number: int
    :ivar end_page_number: End page number (1-indexed) of the content. Required.
    :vartype end_page_number: int
    :ivar unit: Length unit used by the width, height, and source properties. For images/tiff, the
     default unit is pixel.  For PDF, the default unit is inch. Known values are: "pixel" and
     "inch".
    :vartype unit: str or ~azure.ai.contentunderstanding.models.LengthUnit
    :ivar pages: List of pages in the document.
    :vartype pages: list[~azure.ai.contentunderstanding.models.DocumentPage]
    :ivar paragraphs: List of paragraphs in the document.  Only if enableOcr and returnDetails are
     true.
    :vartype paragraphs: list[~azure.ai.contentunderstanding.models.DocumentParagraph]
    :ivar sections: List of sections in the document.  Only if enableLayout and returnDetails are
     true.
    :vartype sections: list[~azure.ai.contentunderstanding.models.DocumentSection]
    :ivar tables: List of tables in the document.  Only if enableLayout and returnDetails are true.
    :vartype tables: list[~azure.ai.contentunderstanding.models.DocumentTable]
    :ivar figures: List of figures in the document.  Only if enableLayout and returnDetails are
     true.
    :vartype figures: list[~azure.ai.contentunderstanding.models.DocumentFigure]
    :ivar annotations: List of annotations in the document.  Only if enableAnnotations and
     returnDetails are true.
    :vartype annotations: list[~azure.ai.contentunderstanding.models.DocumentAnnotation]
    :ivar hyperlinks: List of hyperlinks in the document.  Only if returnDetails are true.
    :vartype hyperlinks: list[~azure.ai.contentunderstanding.models.DocumentHyperlink]
    :ivar segments: List of detected content segments.  Only if enableSegment is true.
    :vartype segments: list[~azure.ai.contentunderstanding.models.DocumentContentSegment]
    r   r   r   startPageNumberstart_page_numberendPageNumberend_page_numberr&   z_models.LengthUnitunitz_models.DocumentPagepagesz_models.DocumentParagraph
paragraphsz_models.DocumentSectionsectionsz_models.DocumentTabletablesz_models.DocumentFigurefiguresz_models.DocumentAnnotationannotationsz_models.DocumentHyperlink
hyperlinksz_models.DocumentContentSegmentr   N)r%   r'   r(   r)   r+   ru  rv  rw  rx  ry  rz  r{  r|  r   r#   r%   r'   r(   r)   r+   r*   r,   c                     y r.   r/   )r0   r#   rr  rt  r%   r'   r(   r)   r+   ru  rv  rw  rx  ry  rz  r{  r|  r   s                     r1   r2   zDocumentContent.__init__-  s    * r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentContent.__init__D  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   DOCUMENTr   r?   s      r1   r2   zDocumentContent.__init__K  s"    $)&)'00	r4   )!rB   rC   rD   rE   r   r   r   r   r  rI   r   rr  r   rt  ru  r   r   rG   rv  ri   rw  rx  ry  rz  r{  r|  r   r	   rF   r2   r   r   rJ   rK   s   @r1   rp  rp    s   -^ 3E&  ^M  3ND'%..
/  NQ'Bs  B%)XOS  @7AB8D(5223
4 `4>B5E8D/01  )>HB?J9:;  ]:DB;Hht567  ^6@B7FHT123  \8BB9GXd345  ]@JBAK$;<=  f>HB?J9:;  OAKBBHht<=>  M &*"&""&>B;?8<BF>B:><@DHBFEI'  	
  c] 3- sm 3- c#99:; uS"6678 345 T"=>? 4 9:; 567  $789!" d#?@A#$ T"=>?%& 4 @AB'( 
) , S 1 d  1c 1S 1T 1 1r4   rp  documentc                   0    e Zd ZU dZ edg d      Zeed<   	  eg d      Zeed<   	  eg d      Z	ded	<   	  ed
g d      Z
eed<   	  edg d      Zeed<   	 ededed	ddededdfd       Zedeeef   ddfd       Zdededdf fdZ xZS )DocumentContentSegmentaG  Detected document content segment.

    :ivar segment_id: Segment identifier. Required.
    :vartype segment_id: str
    :ivar category: Classified content category. Required.
    :vartype category: str
    :ivar span: Span of the segment in the markdown content. Required.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar start_page_number: Start page number (1-indexed) of the segment. Required.
    :vartype start_page_number: int
    :ivar end_page_number: End page number (1-indexed) of the segment. Required.
    :vartype end_page_number: int
    r   r   r   r   r&   r'   rm   r   rq  rr  rs  rt  r,   Nc                     y r.   r/   )r0   r   r'   r   rr  rt  s         r1   r2   zDocumentContentSegment.__init__u  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentContentSegment.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentContentSegment.__init__  rA   r4   )rB   rC   rD   rE   r   r   rG   rI   r'   r   rr  r   rt  r	   r2   r   r   rJ   rK   s   @r1   r  r  P  s-    !%TJ  (BHc  1",B#D
  A'Bs  B%)XOS  @  	
 $   
  S 1 d  *c *S *T * *r4   r  c                   >    e Zd ZU dZ eg d      Zeed<   	  eg d      Ze	e   ed<   	  eg d      Z
e	d   ed<   	  eg d      Ze	ee      ed<   	 ed	d	d	d
dede	e   de	d   de	ee      dd	f
d       Zedeeef   dd	fd       Zdededd	f fdZ xZS )DocumentFootnotea  Footnote of a table or figure.

    :ivar content: Content of the footnote. Required.
    :vartype content: str
    :ivar source: Encoded source that identifies the position of the footnote in the content.
    :vartype source: str
    :ivar span: Span of the footnote in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar elements: Child elements of the footnote.
    :vartype elements: list[str]
    r   r&   rS  rp   rm   r   rT  NrU  r,   c                     y r.   r/   rW  s        r1   r2   zDocumentFootnote.__init__  rr   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentFootnote.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentFootnote.__init__  rA   r4   rZ  rK   s   @r1   r  r    s.   
 BGS  -&BFHSM  V,6B-D((
)  8$.B%HhtCy!  *
 !%04(,  	
 ,- 49% 
  S 1 d  *c *S *T * *r4   r  c                   l    e Zd ZU dZ eg d      Zeedf   ed<   	  eg d      Z	eed<   	  eg d      Z
ee   ed<   	  eg d      Zed   ed	<   	  eg d      Zee   ed
<   	 edddddeedf   dedee   d	ed   d
ee   ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )DocumentFormulaa~  Mathematical formula in a document.

    :ivar kind: Formula kind. Required. Known values are: "inline" and "display".
    :vartype kind: str or ~azure.ai.contentunderstanding.models.DocumentFormulaKind
    :ivar value: LaTex expression describing the formula. Required.
    :vartype value: str
    :ivar source: Encoded source that identifies the position of the formula in the content.
    :vartype source: str
    :ivar span: Span of the formula in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar confidence: Confidence of predicting the formula.
    :vartype confidence: float
    r   r&   z_models.DocumentFormulaKindr   rJ  rp   rm   r   ro   NrK  r,   c                     y r.   r/   rM  s         r1   r2   zDocumentFormula.__init__  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentFormula.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentFormula.__init__  rA   r4   rP  rK   s   @r1   r  r    sY    7AB7D%22
3  P'VWE3W<&BFHSM  U,6B-D((
)  7",B#J  0 !%04&* C667 	
  ,- UO 
  S 1 d  *c *S *T * *r4   r  c                   $    e Zd ZU dZ eg d      Zeed<   	  eg d      Zeed<   	  eg d      Z	e
d   ed<   	  eg d      Ze
e   ed<   	 ed	d	d
dedede
d   de
e   dd	f
d       Zedeeef   dd	fd       Zdededd	f fdZ xZS )DocumentHyperlinka  Hyperlink in a document, such as a link to a web page or an email address.

    :ivar content: Hyperlinked content. Required.
    :vartype content: str
    :ivar url: URL of the hyperlink. Required.
    :vartype url: str
    :ivar span: Span of the hyperlink in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar source: Position of the hyperlink.
    :vartype source: str
    r   r&   rS  rN   rm   r   rp   N)r   rp   r,   c                     y r.   r/   )r0   rS  rN   r   rp   s        r1   r2   zDocumentHyperlink.__init__  rr   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentHyperlink.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentHyperlink.__init__#  rA   r4   )rB   rC   rD   rE   r   rS  rG   rI   rN   r   r   rp   r	   r2   r   r   rJ   rK   s   @r1   r  r    s   
 BGS  )%TUCU),6B-D((
)  9&BFHSM  % 15 $  	
 ,-  
  S 1 d  *c *S *T * *r4   r  c            
            e Zd ZU dZ eg d      Zeed<   	  eg d      Ze	e   ed<   	  eg d      Z
e	d   ed<   	 eddd	dede	e   de	d   d
dfd       Zedeeef   d
dfd       Zdeded
df fdZ xZS )DocumentLinea|  Line in a document, consisting of an contiguous sequence of words.

    :ivar content: Line text. Required.
    :vartype content: str
    :ivar source: Encoded source that identifies the position of the line in the content.
    :vartype source: str
    :ivar span: Span of the line in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    r   r&   rS  rp   rm   r   N)rp   r   r,   c                     y r.   r/   )r0   rS  rp   r   s       r1   r2   zDocumentLine.__init__?  r   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentLine.__init__H  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentLine.__init__O  rA   r4   )rB   rC   rD   rE   r   rS  rG   rI   rp   r   r   r	   r2   r   r   rJ   rK   s   @r1   r  r  '  s     BGS  &BFHSM  R,6B-D((
)  4
 !%04  	
 ,- 
  S 1 d  *c *S *T * *r4   r  c                   B    e Zd ZU dZ edg d      Zeej                     e	d<   	  e
g d      Zee	d<   	 eddddddddd	eded
ee   ded   deee      ded   deed      dee   deeedf      ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )DocumentMermaidFigureaz  Figure containing a diagram, such as a flowchart or network diagram.

    :ivar id: Figure identifier. Required.
    :vartype id: str
    :ivar source: Encoded source that identifies the position of the figure in the content.
    :vartype source: str
    :ivar span: Span of the figure in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar elements: Child elements of the figure, excluding any caption or footnotes.
    :vartype elements: list[str]
    :ivar caption: Figure caption.
    :vartype caption: ~azure.ai.contentunderstanding.models.DocumentCaption
    :ivar footnotes: List of figure footnotes.
    :vartype footnotes: list[~azure.ai.contentunderstanding.models.DocumentFootnote]
    :ivar description: Description of the figure.
    :vartype description: str
    :ivar role: Semantic role of the figure. Known values are: "pageHeader", "pageFooter",
     "pageNumber", "title", "sectionHeading", "footnote", and "formulaBlock".
    :vartype role: str or ~azure.ai.contentunderstanding.models.SemanticRole
    :ivar kind: Figure kind. Required. Figure containing a diagram, such as a flowchart or network
     diagram.
    :vartype kind: str or ~azure.ai.contentunderstanding.models.MERMAID
    :ivar content: Diagram content represented using `Mermaid syntax
     <https://mermaid.js.org/intro/>`_. Required.
    :vartype content: str
    r   r   r   r&   rS  Nrc  r   rp   r   rm   rT  r^  r]  r`  r_  r   rb  ra  r,   c       	              y r.   r/   rj  s
             r1   r2   zDocumentMermaidFigure.__init__v  r   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentMermaidFigure.__init__  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   MERMAIDr   r?   s      r1   r2   zDocumentMermaidFigure.__init__  s"    $)&)&..	r4   )rB   rC   rD   rE   r   r   r   r   r  rI   r   rS  rG   r	   r   ri   r   r2   r   r   rJ   rK   s   @r1   r  r  S  s_   6 1C  \K  1LD'$,,
-  LeBGS  i !%04(,7;@D%)=A  	
  ,- 49% 34 D!;<= c] uS"889: 
  S 1 d  /c /S /T / /r4   r  mermaidc                   t    e Zd ZU dZ edg d      Zeed<   	  eg d      Ze	e
   ed<   	  eg d      Ze	e
   ed<   	  eg d      Ze	ed	      ed
<   	  eg d      Ze	e
   ed<   	  eg d      Ze	ed      ed<   	  eg d      Ze	ed      ed<   	  eg d      Ze	ed      ed<   	  eg d      Ze	ed      ed<   	 eddddddddddede	e
   de	e
   d
e	ed	      de	e
   de	ed      de	ed      de	ed      de	ed      ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )DocumentPagea  Content from a document page.

    :ivar page_number: Page number (1-based). Required.
    :vartype page_number: int
    :ivar width: Width of the page.
    :vartype width: float
    :ivar height: Height of the page.
    :vartype height: float
    :ivar spans: Span(s) associated with the page in the markdown content.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar angle: The general orientation of the content in clockwise direction, measured in degrees
     between (-180, 180]. Only if enableOcr is true.
    :vartype angle: float
    :ivar words: List of words in the page.  Only if enableOcr and returnDetails are true.
    :vartype words: list[~azure.ai.contentunderstanding.models.DocumentWord]
    :ivar lines: List of lines in the page.  Only if enableOcr and returnDetails are true.
    :vartype lines: list[~azure.ai.contentunderstanding.models.DocumentLine]
    :ivar barcodes: List of barcodes in the page.  Only if enableBarcode and returnDetails are
     true.
    :vartype barcodes: list[~azure.ai.contentunderstanding.models.DocumentBarcode]
    :ivar formulas: List of mathematical formulas in the page.  Only if enableFormula and
     returnDetails are true.
    :vartype formulas: list[~azure.ai.contentunderstanding.models.DocumentFormula]
    
pageNumberr   r   page_numberr&   r   r   rm   rn   anglez_models.DocumentWordwordsz_models.DocumentLinelinesz_models.DocumentBarcodebarcodesz_models.DocumentFormulaformulasN)r   r   rn   r  r  r  r  r  r,   c       	              y r.   r/   )
r0   r  r   r   rn   r  r  r  r  r  s
             r1   r2   zDocumentPage.__init__  r   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentPage.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentPage.__init__  rA   r4   )rB   rC   rD   rE   r   r  r   rI   r   r   ru   r   rn   ri   r  r  r  r  r  r	   r2   r   rG   r   rJ   rK   s   @r1   r  r    sS   2 "&UK  +'BE8E?  (BFHUO  3=B4E8D./0  D'BE8E? 04>B5E8D/01  T4>B5E8D/01  T:DB;Hht567  [:DB;Hht567  h
 "&"&7;!%8<8<>B>B  	
  234  345 345 4 9:; 4 9:; 
  S 1 d  *c *S *T * *r4   r  c                   F    e Zd ZU dZ eg d      Zeeedf      e	d<   	  eg d      Z
ee	d<   	  eg d      Zee   e	d<   	  eg d      Zed   e	d	<   	 ed
d
d
ddedeeedf      dee   d	ed   dd
f
d       Zedeeef   dd
fd       Zdededd
f fdZ xZS )DocumentParagrapha  Paragraph in a document, generally consisting of an contiguous sequence of lines with common
    alignment and spacing.

    :ivar role: Semantic role of the paragraph. Known values are: "pageHeader", "pageFooter",
     "pageNumber", "title", "sectionHeading", "footnote", and "formulaBlock".
    :vartype role: str or ~azure.ai.contentunderstanding.models.SemanticRole
    :ivar content: Paragraph text. Required.
    :vartype content: str
    :ivar source: Encoded source that identifies the position of the paragraph in the content.
    :vartype source: str
    :ivar span: Span of the paragraph in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    r   r&   ra  rb  rS  rp   rm   r   N)rb  rp   r   r,   c                     y r.   r/   )r0   rS  rb  rp   r   s        r1   r2   zDocumentParagraph.__init__	  rr   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentParagraph.__init__	  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentParagraph.__init__	  rA   r4   )rB   rC   rD   rE   r   rb  r   r   rG   rI   rS  rp   r   r	   r2   r   r   rJ   rK   s   @r1   r  r    s?    :DB:D(5445
6 [BGS  $&BFHSM  W,6B-D((
)  9
 >B $04  uS"889:	
  ,- 
  S 1 d  *c *S *T * *r4   r  c                        e Zd ZU dZ eg d      Zed   ed<   	  eg d      Zee	e
      ed<   	 edddded   dee	e
      d	dfd
       Zedee
ef   d	dfd       Zdeded	df fdZ xZS )DocumentSectionzSection in a document.

    :ivar span: Span of the section in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar elements: Child elements of the section.
    :vartype elements: list[str]
    r   r&   rm   r   rT  N)r   rT  r,   c                     y r.   r/   )r0   r   rT  s      r1   r2   zDocumentSection.__init__3	  r  r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentSection.__init__;	  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentSection.__init__B	  rA   r4   )rB   rC   rD   rE   r   r   r   rI   rT  ri   rG   r	   r2   r   r   rJ   rK   s   @r1   r  r  !	  s     -7B-D((
)  7$.B%HhtCy!  ) 15(,	 ,- 49%	
 
  S 1 d  *c *S *T * *r4   r  c                       e Zd ZU dZ edg d      Zeed<   	  edg d      Zeed<   	  eg d      Z	e
d	   ed
<   	  eg d      Zee   ed<   	  eg d      Zed   ed<   	  eg d      Zed   ed<   	  eg d      Zee
d      ed<   	  eg d      Zeeedf      ed<   	 edddddddeded
e
d	   dee   ded   ded   dee
d      deeedf      ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )DocumentTableau  Table in a document, consisting table cells arranged in a rectangular layout.

    :ivar row_count: Number of rows in the table. Required.
    :vartype row_count: int
    :ivar column_count: Number of columns in the table. Required.
    :vartype column_count: int
    :ivar cells: Cells contained within the table. Required.
    :vartype cells: list[~azure.ai.contentunderstanding.models.DocumentTableCell]
    :ivar source: Encoded source that identifies the position of the table in the content.
    :vartype source: str
    :ivar span: Span of the table in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar caption: Table caption.
    :vartype caption: ~azure.ai.contentunderstanding.models.DocumentCaption
    :ivar footnotes: List of table footnotes.
    :vartype footnotes: list[~azure.ai.contentunderstanding.models.DocumentFootnote]
    :ivar role: Semantic role of the table. Known values are: "pageHeader", "pageFooter",
     "pageNumber", "title", "sectionHeading", "footnote", and "formulaBlock".
    :vartype role: str or ~azure.ai.contentunderstanding.models.SemanticRole
    rowCountr   r   	row_countcolumnCountcolumn_countr&   z_models.DocumentTableCellcellsrp   rm   r   r]  r^  r_  r`  ra  rb  N)rp   r   r^  r`  rb  r,   c                     y r.   r/   )	r0   r  r  r  rp   r   r^  r`  rb  s	            r1   r2   zDocumentTable.__init__~	       r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentTable.__init__	  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentTable.__init__	  rA   r4   )rB   rC   rD   rE   r   r  r   rI   r  r  ri   rp   r   rG   r   r^  r`  rb  r   r	   r2   r   r   rJ   rK   s   @r1   r  r  F	  s   *  $SIs  1"'VL#  4/9B0E4+,  6&BFHSM  S,6B-D((
)  53=B4GX/0  <FB=Ix789  #9CB:D(5445
6 K  !%047;@D=A  	
 /0  ,- 34 D!;<= uS"889: 
  S 1 d  *c *S *T * *r4   r  c                   B    e Zd ZU dZ eg d      Zeeedf      e	d<   	  edg d      Z
ee	d<   	  ed	g d      Zee	d
<   	  edg d      Zee   e	d<   	  edg d      Zee   e	d<   	  eg d      Zee	d<   	  eg d      Zee   e	d<   	  eg d      Zed   e	d<   	  eg d      Zeee      e	d<   	 edddddddded
ededeeedf      dee   dee   dee   ded   deee      ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )DocumentTableCella  Table cell in a document table.

    :ivar kind: Table cell kind. Known values are: "content", "rowHeader", "columnHeader",
     "stubHead", and "description".
    :vartype kind: str or ~azure.ai.contentunderstanding.models.DocumentTableCellKind
    :ivar row_index: Row index of the cell. Required.
    :vartype row_index: int
    :ivar column_index: Column index of the cell. Required.
    :vartype column_index: int
    :ivar row_span: Number of rows spanned by this cell.
    :vartype row_span: int
    :ivar column_span: Number of columns spanned by this cell.
    :vartype column_span: int
    :ivar content: Content of the table cell. Required.
    :vartype content: str
    :ivar source: Encoded source that identifies the position of the table cell in the content.
    :vartype source: str
    :ivar span: Span of the table cell in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar elements: Child elements of the table cell.
    :vartype elements: list[str]
    r   r&   z_models.DocumentTableCellKindr   rowIndexr   	row_indexcolumnIndexcolumn_indexrowSpanrow_span
columnSpancolumn_spanrS  rp   rm   r   rT  N)r   r  r  rp   r   rT  r,   c       	              y r.   r/   )
r0   r  r  rS  r   r  r  rp   r   rT  s
             r1   r2   zDocumentTableCell.__init__	  r   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentTableCell.__init__	  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentTableCell.__init__	  rA   r4   )rB   rC   rD   rE   r   r   r   r   rG   rI   r  r   r  r  r  rS  rp   r   rT  ri   r	   r2   r   r   rJ   rK   s   @r1   r  r  	  s'   . CMBCD(5==>
? $SIs  +"'VL#  .(#RHhsm  /!+&U"K#  2BGS  /&BFHSM  X,6B-D((
)  :$.B%HhtCy!  , GK"&%) $04(,  	
  uS"AABC 3- c]  ,- 49% 
  S 1 d  *c *S *T * *r4   r  c                   2    e Zd ZU dZ eg d      Zeed<   	  eg d      Ze	e   ed<   	  eg d      Z
e	d   ed<   	  eg d      Ze	e   ed<   	 ed	d	d	d
dede	e   de	d   de	e   dd	f
d       Zedeeef   dd	fd       Zdededd	f fdZ xZS )DocumentWordaY  Word in a document, consisting of a contiguous sequence of characters. For non-space delimited
    languages, such as Chinese, Japanese, and Korean, each character is represented as its own
    word.

    :ivar content: Word text. Required.
    :vartype content: str
    :ivar source: Encoded source that identifies the position of the word in the content.
    :vartype source: str
    :ivar span: Span of the word in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar confidence: Confidence of predicting the word.
    :vartype confidence: float
    r   r&   rS  rp   rm   r   ro   NrK  r,   c                     y r.   r/   )r0   rS  rp   r   ro   s        r1   r2   zDocumentWord.__init__
  rr   r4   r5   c                      yr7   r/   r8   s     r1   r2   zDocumentWord.__init__
  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zDocumentWord.__init__ 
  rA   r4   )rB   rC   rD   rE   r   rS  rG   rI   rp   r   r   ro   ru   r	   r2   r   r   rJ   rK   s   @r1   r  r  	  s$    BGS  &BFHSM  R,6B-D((
)  4",B#J  -
 !%04&*  	
 ,- UO 
  S 1 d  *c *S *T * *r4   r  c                   N    e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  e	dg d      Zeej                     ed<   	  edg d      Zee   ed<   	 ed	d	d	d	d
dedeed      dee   dee   dee   dd	fd       Zedeeef   dd	fd       Zdededd	f fdZ xZS )IntegerFielda  Integer field extracted from the content.

    :ivar type: Semantic data type of the field value. Required. Known values are: "string",
     "date", "time", "number", "integer", "boolean", "array", "object", and "json".
    :vartype type: str or ~azure.ai.contentunderstanding.models.ContentFieldType
    :ivar spans: Span(s) associated with the field value in the markdown content.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar confidence: Confidence of predicting the field value.
    :vartype confidence: float
    :ivar source: Encoded source that identifies the position of the field value in the content.
    :vartype source: str
    :ivar field_type: Semantic data type of the field value. Required. Integer as 64-bit signed
     integer.
    :vartype field_type: str or ~azure.ai.contentunderstanding.models.INTEGER
    :ivar value_integer: Integer field value.
    :vartype value_integer: int
    r   rl   r   r   rx   valueIntegervalue_integerN)rn   ro   rp   r  rn   rm   ro   rp   r,   c                     y r.   r/   )r0   rl   rn   ro   rp   r  s         r1   r2   zIntegerField.__init__D
  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zIntegerField.__init__O
  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   INTEGERrx   r?   s      r1   r2   zIntegerField.__init__V
  r   r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   rl   rx   r   r   r  r   r  r   r   r	   ri   ru   r2   r   r   rJ   rK   s   @r1   r  r  $
  sB   $ &(Kc6k"'" OD# ]4FF  `O  5PJ(001  P\#-(W$M8C=  
 8<&* $'+  234	
 UO   } 
  S 1 d  3c 3S 3T 3 3r4   r  integerc                   N    e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  e	dg d      Zeej                     ed<   	  edg d      Zee   ed<   	 ed	d	d	d	d
dedeed      dee   dee   dee   dd	fd       Zedeeef   dd	fd       Zdededd	f fdZ xZS )	JsonFielda  JSON field extracted from the content.

    :ivar type: Semantic data type of the field value. Required. Known values are: "string",
     "date", "time", "number", "integer", "boolean", "array", "object", and "json".
    :vartype type: str or ~azure.ai.contentunderstanding.models.ContentFieldType
    :ivar spans: Span(s) associated with the field value in the markdown content.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar confidence: Confidence of predicting the field value.
    :vartype confidence: float
    :ivar source: Encoded source that identifies the position of the field value in the content.
    :vartype source: str
    :ivar field_type: Semantic data type of the field value. Required. JSON object.
    :vartype field_type: str or ~azure.ai.contentunderstanding.models.JSON
    :ivar value_json: JSON field value.
    :vartype value_json: any
    r   rl   r   r   rx   	valueJson
value_jsonN)rn   ro   rp   r  rn   rm   ro   rp   r,   c                     y r.   r/   )r0   rl   rn   ro   rp   r  s         r1   r2   zJsonField.__init__z
  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zJsonField.__init__
  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   JSONrx   r?   s      r1   r2   zJsonField.__init__
  r9  r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   rl   rx   r   r   r  r   r  r   r   r	   ri   ru   r2   r   rJ   rK   s   @r1   r  r  [
  sB   " &(Kc6k"'" OD# ]1C  ]L  2MJ(--.  MG *%T!J  
 8<&* $$(  234	
 UO  SM 
  S 1 d  0c 0S 0T 0 0r4   r  jsonc                        e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	 ededdfd       Zed	eeef   ddfd
       Zdededdf fdZ xZS )KnowledgeSourcea2  Knowledge source.

    You probably want to use the sub-classes and not this class directly. Known sub-classes are:
    LabeledDataKnowledgeSource

    :ivar kind: The kind of knowledge source. Required. "labeledData"
    :vartype kind: str or ~azure.ai.contentunderstanding.models.KnowledgeSourceKind
    r   r   r   r   r,   Nc                     y r.   r/   )r0   r   s     r1   r2   zKnowledgeSource.__init__
  r%  r4   r5   c                      yr7   r/   r8   s     r1   r2   zKnowledgeSource.__init__
  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zKnowledgeSource.__init__
  rA   r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   r   r	   r2   r   r   rJ   rK   s   @r1   r  r  
  s     &(Kc6k"'" OD#  B  
	  S 1 d  *c *S *T * *r4   r  c            
       2    e Zd ZU dZ edg d      Zeej                     e	d<   	  e
dg d      Zee	d<   	  e
g d      Zee   e	d<   	  e
d	g d      Zee	d
<   	 eddded
edee   ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )LabeledDataKnowledgeSourcea<  Labeled data knowledge source.

    :ivar kind: A blob container containing labeled data. Required. A labeled data knowledge
     source.
    :vartype kind: str or ~azure.ai.contentunderstanding.models.LABELED_DATA
    :ivar container_url: The URL of the blob container containing labeled data. Required.
    :vartype container_url: str
    :ivar prefix: An optional prefix to filter blobs within the container.
    :vartype prefix: str
    :ivar file_list_path: An optional path to a file listing specific blobs to include. Required.
    :vartype file_list_path: str
    r   r   r   containerUrlcontainer_urlr&   prefixfileListPathfile_list_pathN)r  r,   c                     y r.   r/   )r0   r  r  r  s       r1   r2   z#LabeledDataKnowledgeSource.__init__
  r   r4   r5   c                      yr7   r/   r8   s     r1   r2   z#LabeledDataKnowledgeSource.__init__
  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   LABELED_DATAr   r?   s      r1   r2   z#LabeledDataKnowledgeSource.__init__
  r   r4   )rB   rC   rD   rE   r   r   r   r   r  rI   r   r  rG   r  r   r  r	   r2   r   r   rJ   rK   s   @r1   r  r  
  s    7If  bQ  7RD'%22
3  R^#(WM3  K&BFHSM  C$(WNC  R !%  	
  
  S 1 d  5c 5S 5T 5 5r4   r  labeledDatac                   N    e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  e	dg d      Zeej                     ed<   	  edg d      Zee   ed<   	 ed	d	d	d	d
dedeed      dee   dee   dee   dd	fd       Zedeeef   dd	fd       Zdededd	f fdZ xZS )NumberFielda  Number field extracted from the content.

    :ivar type: Semantic data type of the field value. Required. Known values are: "string",
     "date", "time", "number", "integer", "boolean", "array", "object", and "json".
    :vartype type: str or ~azure.ai.contentunderstanding.models.ContentFieldType
    :ivar spans: Span(s) associated with the field value in the markdown content.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar confidence: Confidence of predicting the field value.
    :vartype confidence: float
    :ivar source: Encoded source that identifies the position of the field value in the content.
    :vartype source: str
    :ivar field_type: Semantic data type of the field value. Required. Number as double precision
     floating point.
    :vartype field_type: str or ~azure.ai.contentunderstanding.models.NUMBER
    :ivar value_number: Number field value.
    :vartype value_number: float
    r   rl   r   r   rx   valueNumbervalue_numberN)rn   ro   rp   r  rn   rm   ro   rp   r,   c                     y r.   r/   )r0   rl   rn   ro   rp   r  s         r1   r2   zNumberField.__init__  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zNumberField.__init__  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   NUMBERrx   r?   s      r1   r2   zNumberField.__init__  "    $)&)*11r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   rl   rx   r   r   r  r   r  r   ru   r	   ri   r2   r   r   rJ   rK   s   @r1   r  r  
  sB   $ &(Kc6k"'" OD# ]3E6  _N  4OJ(//0  Oe$.'V%L(5/  
 8<&* $(,  234	
 UO  uo 
  S 1 d  2c 2S 2T 2 2r4   r  numberc                   b    e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  e	dg d      Zeej                     ed<   	  edg d      Zeeedf      ed	<   	 ed
d
d
d
ddedeed      dee   dee   d	eeedf      dd
fd       Zedeeef   dd
fd       Zdededd
f fdZ xZS )ObjectFielda  Object field extracted from the content.

    :ivar type: Semantic data type of the field value. Required. Known values are: "string",
     "date", "time", "number", "integer", "boolean", "array", "object", and "json".
    :vartype type: str or ~azure.ai.contentunderstanding.models.ContentFieldType
    :ivar spans: Span(s) associated with the field value in the markdown content.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar confidence: Confidence of predicting the field value.
    :vartype confidence: float
    :ivar source: Encoded source that identifies the position of the field value in the content.
    :vartype source: str
    :ivar field_type: Semantic data type of the field value. Required. Named list of subfields.
    :vartype field_type: str or ~azure.ai.contentunderstanding.models.OBJECT
    :ivar value_object: Object field value.
    :vartype value_object: dict[str, ~azure.ai.contentunderstanding.models.ContentField]
    r   rl   r   r   rx   valueObjectr*   value_objectN)rn   ro   rp   r  rn   rm   ro   rp   r,   c                     y r.   r/   )r0   rl   rn   ro   rp   r  s         r1   r2   zObjectField.__init__;  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zObjectField.__init__F  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   OBJECTrx   r?   s      r1   r2   zObjectField.__init__M  r   r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   rl   rx   r   r   r	  r   r  r   r	   ri   ru   r2   r   r   rJ   rK   s   @r1   r  r    s[   " &(Kc6k"'" OD# ]3E6  _N  4OJ(//0  OS@J'VAL(4%; ;<=  
 8<&* $DH  234	
 UO  tC)?$?@A 
  S 1 d  2c 2S 2T 2 2r4   r  objectc                       e Zd ZdZy)RecordMergePatchUpdatezRecordMergePatchUpdate.N)rB   rC   rD   rE   r/   r4   r1   r  r  R  s    !r4   r  c                   N    e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  e	dg d      Zeej                     ed<   	  edg d      Zee   ed<   	 ed	d	d	d	d
dedeed      dee   dee   dee   dd	fd       Zedeeef   dd	fd       Zdededd	f fdZ xZS )StringFielda  String field extracted from the content.

    :ivar type: Semantic data type of the field value. Required. Known values are: "string",
     "date", "time", "number", "integer", "boolean", "array", "object", and "json".
    :vartype type: str or ~azure.ai.contentunderstanding.models.ContentFieldType
    :ivar spans: Span(s) associated with the field value in the markdown content.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar confidence: Confidence of predicting the field value.
    :vartype confidence: float
    :ivar source: Encoded source that identifies the position of the field value in the content.
    :vartype source: str
    :ivar field_type: Semantic data type of the field value. Required. Plain text.
    :vartype field_type: str or ~azure.ai.contentunderstanding.models.STRING
    :ivar value_string: String field value.
    :vartype value_string: str
    r   rl   r   r   rx   valueStringvalue_stringN)rn   ro   rp   r  rn   rm   ro   rp   r,   c                     y r.   r/   )r0   rl   rn   ro   rp   r  s         r1   r2   zStringField.__init__u  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zStringField.__init__  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   STRINGrx   r?   s      r1   r2   zStringField.__init__  r   r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   rl   rx   r   r   r  r   r  r   r	   ri   ru   r2   r   r   rJ   rK   s   @r1   r  r  V  sB   " &(Kc6k"'" OD# ]3E6  _N  4OJ(//0  OF",'V#L(3-  
 8<&* $&*  234	
 UO  sm 
  S 1 d  2c 2S 2T 2 2r4   r  stringc                        e Zd ZU dZ eg d      Zeee      e	d<   	  eg d      Z
eee      e	d<   	 eddddeee      deee      ddfd	       Zed
eeef   ddfd       Zdededdf fdZ xZS )SupportedModelsa  Chat completion and embedding models supported by the analyzer.

    :ivar completion: Chat completion models supported by the analyzer.
    :vartype completion: list[str]
    :ivar embedding: Embedding models supported by the analyzer.
    :vartype embedding: list[str]
    r   r&   
completion	embeddingN)r  r  r,   c                     y r.   r/   )r0   r  r  s      r1   r2   zSupportedModels.__init__  r  r4   r5   c                      yr7   r/   r8   s     r1   r2   zSupportedModels.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zSupportedModels.__init__  rA   r4   )rB   rC   rD   rE   r   r  r   ri   rG   rI   r  r	   r2   r   r   rJ   rK   s   @r1   r  r    s     '1B'Jc#  <%/B&IxS	"  6 +/)-	 T#Y' DI&	
 
  S 1 d  *c *S *T * *r4   r  c                   v    e Zd ZU dZi Zeeef   ed<    e	dg d      Z
eed<   	  e	dg d      Zeej                     ed<   	  edg d      Zeej&                     ed<   	 ed	d	d	d	d
dedeed      dee   dee   deej&                     dd	fd       Zedeeef   dd	fd       Zdededd	f fdZ xZS )	TimeFielda  Time field extracted from the content.

    :ivar type: Semantic data type of the field value. Required. Known values are: "string",
     "date", "time", "number", "integer", "boolean", "array", "object", and "json".
    :vartype type: str or ~azure.ai.contentunderstanding.models.ContentFieldType
    :ivar spans: Span(s) associated with the field value in the markdown content.
    :vartype spans: list[~azure.ai.contentunderstanding.models.ContentSpan]
    :ivar confidence: Confidence of predicting the field value.
    :vartype confidence: float
    :ivar source: Encoded source that identifies the position of the field value in the content.
    :vartype source: str
    :ivar field_type: Semantic data type of the field value. Required. Time, normalized to ISO 8601
     (hh:mm:ss) format.
    :vartype field_type: str or ~azure.ai.contentunderstanding.models.TIME
    :ivar value_time: Time field value, in ISO 8601 (hh:mm:ss) format.
    :vartype value_time: ~datetime.time
    r   rl   r   r   rx   	valueTime
value_timeN)rn   ro   rp   r   rn   rm   ro   rp   r,   c                     y r.   r/   )r0   rl   rn   ro   rp   r   s         r1   r2   zTimeField.__init__  rU   r4   r5   c                      yr7   r/   r8   s     r1   r2   zTimeField.__init__  r9   r4   r:   r;   c                 N    t        |   |i | t        j                  | _        y r.   )r>   r2   r   TIMErx   r?   s      r1   r2   zTimeField.__init__  r9  r4   )rB   rC   rD   rE   r   rF   rG   rH   rI   r   rl   rx   r   r   r$  r   r   r   rh   timer	   ri   ru   r2   r   r   rJ   rK   s   @r1   r  r    sN   $ &(Kc6k"'" OD# ]1C  ]L  2MJ(--.  M*4%T+J'  ;
 8<&* $.2  234	
 UO  X]]+ 
  S 1 d  0c 0S 0T 0 0r4   r  r%  c                       e Zd ZU dZ eg d      Zee   ed<   	  edg d      Z	e
ed<   	  edg d      Ze
ed	<   	  eg d      Zee   ed
<   	  eg d      Zeed<   	  eg d      Zee   ed<   	  eg d      Zed   ed<   	  eg d      Zed   ed<   	 edddddde
d	e
deded   dee   d
ee   dee   ded   ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )TranscriptPhrasea*  Transcript phrase.

    :ivar speaker: Speaker index or name.
    :vartype speaker: str
    :ivar start_time_ms: Start time of the phrase in milliseconds. Required.
    :vartype start_time_ms: int
    :ivar end_time_ms: End time of the phrase in milliseconds. Required.
    :vartype end_time_ms: int
    :ivar locale: Detected locale of the phrase.  Ex. en-US.
    :vartype locale: str
    :ivar text: Transcript text. Required.
    :vartype text: str
    :ivar confidence: Confidence of predicting the phrase.
    :vartype confidence: float
    :ivar span: Span of the phrase in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    :ivar words: List of words in the phrase. Required.
    :vartype words: list[~azure.ai.contentunderstanding.models.TranscriptWord]
    r   r&   speakerr   r   r   r   r   localetextro   rm   r   z_models.TranscriptWordr  N)r(  r)  ro   r   r,   c                     y r.   r/   )	r0   r   r   r*  r  r(  r)  ro   r   s	            r1   r2   zTranscriptPhrase.__init__  r  r4   r5   c                      yr7   r/   r8   s     r1   r2   zTranscriptPhrase.__init__+  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zTranscriptPhrase.__init__2  rA   r4   )rB   rC   rD   rE   r   r(  r   rG   rI   r   r   r   r)  r*  ro   ru   r   r  ri   r	   r2   r   r   rJ   rK   s   @r1   r'  r'    s   ( (BGXc]  !#'VM3  >!%TK  <&BFHSM  5&UVD#V$",B#J  /,6B-D((
)  6,6B-E4()  1 "& $&*04  	
  ,- #  UO ,- 
  S 1 d  *c *S *T * *r4   r'  c                       e Zd ZU dZ edg d      Zeed<   	  edg d      Zeed<   	  eg d      Z	e
ed	<   	  eg d      Zed
   ed<   	 edddeded	e
ded
   ddf
d       Zedee
ef   ddfd       Zdededdf fdZ xZS )TranscriptWorda  Transcript word.

    :ivar start_time_ms: Start time of the word in milliseconds. Required.
    :vartype start_time_ms: int
    :ivar end_time_ms: End time of the word in milliseconds. Required.
    :vartype end_time_ms: int
    :ivar text: Transcript text. Required.
    :vartype text: str
    :ivar span: Span of the word in the markdown content.
    :vartype span: ~azure.ai.contentunderstanding.models.ContentSpan
    r   r   r   r   r   r   r&   r*  rm   r   N)r   r,   c                     y r.   r/   )r0   r   r   r*  r   s        r1   r2   zTranscriptWord.__init__R  rr   r4   r5   c                      yr7   r/   r8   s     r1   r2   zTranscriptWord.__init__\  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zTranscriptWord.__init__c  rA   r4   )rB   rC   rD   rE   r   r   r   rI   r   r*  rG   r   r   r	   r2   r   r   rJ   rK   s   @r1   r/  r/  6  s   
 $'VM3  <!%TK  :&UVD#V$,6B-D((
)  4 15  	
  ,- 
  S 1 d  *c *S *T * *r4   r/  c                       e Zd ZU dZ edg d      Zee   ed<   	  edg d      Z	ee   ed<   	  edg d      Z
ee   ed	<   	  ed
g d      Zee   ed<   	  edg d      Zee   ed<   	  edg d      Zee   ed<   	  eg d      Zeeeef      ed<   	 edddddddddee   dee   d	ee   dee   dee   dee   deeeef      ddfd       Zedeeef   ddfd       Zdededdf fdZ xZS )UsageDetailsaK  Usage details.

    :ivar document_pages_minimal: The number of document pages processed at the minimal level. For
     documents without explicit pages (ex. txt, html), every 3000 UTF-16 characters is counted as
     one page.
    :vartype document_pages_minimal: int
    :ivar document_pages_basic: The number of document pages processed at the basic level. For
     documents without explicit pages (ex. txt, html), every 3000 UTF-16 characters is counted as
     one page.
    :vartype document_pages_basic: int
    :ivar document_pages_standard: The number of document pages processed at the standard level.
     For documents without explicit pages (ex. txt, html), every 3000 UTF-16 characters is counted
     as one page.
    :vartype document_pages_standard: int
    :ivar audio_hours: The hours of audio processed.
    :vartype audio_hours: float
    :ivar video_hours: The hours of video processed.
    :vartype video_hours: float
    :ivar contextualization_tokens: The number of contextualization tokens consumed for preparing
     context, generating confidence scores, source grounding, and output formatting.
    :vartype contextualization_tokens: int
    :ivar tokens: The number of LLM and embedding tokens consumed, grouped by model (ex. GTP 4.1)
     and type (ex. input, cached input, output).
    :vartype tokens: dict[str, int]
    documentPagesMinimalr   r   document_pages_minimaldocumentPagesBasicdocument_pages_basicdocumentPagesStandarddocument_pages_standard
audioHoursaudio_hours
videoHoursvideo_hourscontextualizationTokenscontextualization_tokensr&   tokensN)r6  r8  r:  r<  r>  r@  rA  r,   c                     y r.   r/   )r0   r6  r8  r:  r<  r>  r@  rA  s           r1   r2   zUsageDetails.__init__  r3   r4   r5   c                      yr7   r/   r8   s     r1   r2   zUsageDetails.__init__  r9   r4   r:   r;   c                 $    t        |   |i | y r.   r=   r?   s      r1   r2   zUsageDetails.__init__  rA   r4   )rB   rC   rD   rE   r   r6  r   r   rI   r8  r:  r<  ru   r>  r@  rA  rF   rG   r	   r2   r   r   rJ   rK   s   @r1   r4  r4  g  s   4 -7#B-HSM T*4!B+(3- N-7$B.Xc] T#-&U$K%  (#-&U$K%  (.8&B/hsm 9'1B(FHT#s(^$ &  15.215'+'+26+/
 !)
 'sm	

 "*#
 e_
 e_
 #+3-
 c3h(
 

 
 S 1 d  *c *S *T * *r4   r4  )Krh   typingr   r   r   r   r   r   r	   azure.core.exceptionsr
   _utils.model_baser   rH   r   r   _enumsr   r   r   r    r   _modelsr   rM   rZ   rk   rw   r   r   r   r   r   r   r   r   r  r  r  r!  r)  r2  r<  rC  rI  rR  r\  rh  rp  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r'  r/  r4  r/   r4   r1   <module>rK     s    R R R / O O  $J*f J*Z;*F ;*|C*V C*L7*6 7*t41W 41nk5 k5\7* 7*t33<y 33lx*f x*v7*F 7*tY*F Y*x7*V 7*t)* )*X^*V ^*B,* ,*^*& *D*6 *D** **Z50F 50pW* W*t;* ;*|9*f 9*x0*f 0*fW*V W*t=-. =-@A1oZ A1H8*V 8*v0*v 0*f5*f 5*p.* .*b)*6 )*X;/N) ;/|W*6 W*t3* 3*l"*f "*JN*F N*bU* U*p2*6 2*j43<y 43n30F 30l*f *D/5 /5d42,h 42n32,h 32l"V "32,h 32l"*f "*J50F 50pJ*v J*Z.*V .*bV*6 V*r4   