
    ]h                    X   d dl mZ d dlmZmZmZmZmZmZm	Z	 d dl
mZ d dlmZ d dlmZ ddlmZ ddlmZmZ dd	lmZmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlm Z! ddlm"Z# ddlm$Z% e	rd dl&m&Z& ddlm'Z' ddded   fdZ( G d de)ee      Z* G d de)ee      Z+ G d de)ee      Z, G d d e)ee      Z- G d! d"e)ee      Z. G d# d$e)ee      Z/ G d% d&e)ee      Z0 G d' d(e)ee      Z1 G d) d*e#      Z" G d+ d,e      Z2 G d- d.e!      Z  G d/ d0e%      Z$ G d1 d2e      Z G d3 d4e      Z3 G d5 d6e      Z4 G d7 d8e      Z5 G d9 d:e      Z6 G d; d<e      Z7 G d= d>e      Z8 G d? d@e      Z9 G dA dBe      Z: G dC de      Z; G dD dEe      Z< G dF dGe=      Z> G dH dIe      Z G dJ dKe=      Z? G dL dMe=      Z@ G dN dOe=      ZA G dP dQe      ZB G dR dSe      ZC G dT dUe      ZD G dV dWe)ee      ZE G dX dYe      ZF G dZ d[e      ZG G d\ d]e      ZH G d^ d_e=      ZIy`)a    )Enum)AnyCallableDictListOptionalUnionTYPE_CHECKING)CaseInsensitiveEnumMeta)PageIterator)HttpResponseError   )decode_base64_to_bytes)return_context_and_deserializedprocess_storage_error)	DictMixinget_enum_value)AccessPolicy)
ArrowField)CorsRule)Logging)Metrics)RetentionPolicy)StaticWebsite)datetime)PageList	page_listr   return	PageRangec           	         | j                   }| j                  }|t        d      |t        d      g }d\  }}|t        |      k  r|t        |      k  r||   ||   }}|j                  |j                  k  r7|j                  t        |j                  |j                  d             |dz  }n6|j                  t        |j                  |j                  d             |dz  }|t        |      k  r|t        |      k  r|||d  D cg c]$  }t        |j                  |j                  d      & c}z  }|||d  D cg c]$  }t        |j                  |j                  d      & c}z  }|S c c}w c c}w )Nz-PageList's 'page_range' is malformed or None.z/PageList's 'clear_ranges' is malformed or None.)r   r   Fstartendclearedr   T)
page_rangeclear_range
ValueErrorlenr"   appendr   r#   )	r   page_rangesclear_rangesrangesp_ic_ipcrs	            `/var/www/core.comfia.cic-ware.com/crm/lib/python3.12/site-packages/azure/storage/blob/_models.pyparse_page_listr3       sg   &&K((LHIIJKKFHC K 
 S3|+<%<3c!2177QWWMMQUUEB 1HCMMQUUDA 1HC K 
 S3|+<%< ;WZW[K\]ayqwwAEE5A]]F
,WZW[J\]QyqwwAEE4@]]FM ^]s   )E1)E6c                       e Zd ZdZdZdZy)BlobType	BlockBlobPageBlob
AppendBlobN)__name__
__module____qualname__	BLOCKBLOBPAGEBLOB
APPENDBLOB     r2   r5   r5   C   s    IHJr@   r5   )	metaclassc                       e Zd ZdZdZdZdZy)
BlockStatezBlock blob block types.	CommittedLatestUncommittedN)r9   r:   r;   __doc__	COMMITTEDLATESTUNCOMMITTEDr?   r@   r2   rC   rC   J   s    !IFKr@   rC   c                        e Zd ZdZdZdZdZdZy)StandardBlobTierz
    Specifies the blob tier to set the blob to. This is only applicable for
    block blobs on standard storage accounts.
    ArchiveCoolColdHotN)r9   r:   r;   rG   ARCHIVECOOLCOLDHOTr?   r@   r2   rL   rL   R   s    
 GDD
Cr@   rL   c                   4    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
Zy)PremiumPageBlobTieraZ  
    Specifies the page blob tier to set the blob to. This is only applicable to page
    blobs on premium storage accounts. Please take a look at:
    https://learn.microsoft.com/azure/storage/storage-premium-storage#scalability-and-performance-targets
    for detailed information on the corresponding IOPS and throughput per PageBlobTier.
    P4P6P10P15P20P30P40P50P60N)r9   r:   r;   rG   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r?   r@   r2   rV   rV   ^   s6     
B	B
C
C
C
C
C
C
Cr@   rV   c                       e Zd ZdZdZdZdZy)QuickQueryDialectz/Specifies the quick query input/output dialect.DelimitedTextDialectDelimitedJsonDialectParquetDialectN)r9   r:   r;   rG   DELIMITEDTEXTDELIMITEDJSONPARQUETr?   r@   r2   ra   ra   q   s    9*M*MGr@   ra   c                        e Zd ZdZdZ	 dZ	 dZy)SequenceNumberActionzSequence number actions.	incrementmaxupdateN)r9   r:   r;   rG   	INCREMENTMAXUPDATEr?   r@   r2   ri   ri   y   s%    "I
 C
 FJr@   ri   c                        e Zd ZdZdZ	 dZ	 dZy)PublicAccesszc
    Specifies whether data in the container may be accessed publicly and the level of access.
    offblob	containerN)r9   r:   r;   rG   OFFBLOB	CONTAINERr?   r@   r2   rq   rq      s+     C
 D Ir@   rq   c                       e Zd ZdZdZdZdZy)BlobImmutabilityPolicyModez
    Specifies the immutability policy mode to set on the blob.
    "Mutable" can only be returned by service, don't set to "Mutable".
    UnlockedLockedMutableN)r9   r:   r;   rG   UNLOCKEDLOCKEDMUTABLEr?   r@   r2   ry   ry      s    
 HFGr@   ry   c                   l     e Zd ZU dZdZeed<   dZee	   ed<   d	dedee	   ddf fdZ
ed        Z xZS )
r   a  The retention policy which determines how long the associated data should
    persist.

    :param bool enabled:
        Indicates whether a retention policy is enabled for the storage service.
        The default value is False.
    :param Optional[int] days:
        Indicates the number of days that metrics or logging or
        soft-deleted data should be retained. All data older than this value will
        be deleted. If enabled=True, the number of days must be specified.
    FenabledNdaysr   c                 z    t         t        |   ||d        | j                  r| j                  t        d      y y )N)r   r   allow_permanent_deletez/If policy is enabled, 'days' must be specified.)superr   __init__r   r   r'   )selfr   r   	__class__s      r2   r   zRetentionPolicy.__init__   s=    ot-gDae-f<<TYY.NOO /<r@   c                 P    |s |        S  | |j                   |j                        S )Nr   r   r   cls	generateds     r2   _from_generatedzRetentionPolicy._from_generated   s)    5L%%
 	
r@   )FN)r9   r:   r;   rG   r   bool__annotations__r   r   intr   classmethodr   __classcell__r   s   @r2   r   r      sX    
 GTD(3-P PHSM PT P
 
 
r@   r   c                       e Zd ZU dZdZeed<   	 dZeed<   	 dZ	eed<   	 dZ
eed<   	  e       Zeed<   	 d	ed
dfdZed        Zy)BlobAnalyticsLogginga  Azure Analytics Logging settings.

    :keyword str version:
        The version of Storage Analytics to configure. The default value is 1.0.
    :keyword bool delete:
        Indicates whether all delete requests should be logged. The default value is `False`.
    :keyword bool read:
        Indicates whether all read requests should be logged. The default value is `False`.
    :keyword bool write:
        Indicates whether all write requests should be logged. The default value is `False`.
    :keyword ~azure.storage.blob.RetentionPolicy retention_policy:
        Determines how long the associated data should persist. If not specified the retention
        policy will be disabled by default.
    1.0versionFdeletereadwriteretention_policykwargsr   Nc                     |j                  dd      | _        |j                  dd      | _        |j                  dd      | _        |j                  dd      | _        |j                  d      xs
 t               | _        y )Nr   r   r   Fr   r   r   )getr   r   r   r   r   r   r   r   s     r2   r   zBlobAnalyticsLogging.__init__   sd    zz)U3jj51JJvu-	ZZ/
 &

+= > S/BSr@   c           	          |s |        S  | |j                   |j                  |j                  |j                  t        j                  |j                              S )N)r   r   r   r   r   )r   r   r   r   r   r   r   r   s     r2   r   z$BlobAnalyticsLogging._from_generated   sM    5L%%##//,<<Y=W=WX
 	
r@   )r9   r:   r;   rG   r   strr   r   r   r   r   r   r   r   r   r   r   r?   r@   r2   r   r      sx     GS8FDAD$?E4@(7(9o9AT T T 	
 	
r@   r   c                   ~    e Zd ZU dZdZeed<   	 dZeed<   	 e	e   ed<   	  e
       Ze
ed<   	 ded	d
fdZed        Zy
)r   a  A summary of request statistics grouped by API in hour or minute aggregates
    for blobs.

    :keyword str version:
        The version of Storage Analytics to configure. The default value is 1.0.
    :keyword bool enabled:
        Indicates whether metrics are enabled for the Blob service.
        The default value is `False`.
    :keyword bool include_apis:
        Indicates whether metrics should generate summary statistics for called API operations.
    :keyword ~azure.storage.blob.RetentionPolicy retention_policy:
        Determines how long the associated data should persist. If not specified the retention
        policy will be disabled by default.
    r   r   Fr   include_apisr   r   r   Nc                     |j                  dd      | _        |j                  dd      | _        |j                  d      | _        |j                  d      xs
 t	               | _        y )Nr   r   r   Fr   r   )r   r   r   r   r   r   r   s     r2   r   zMetrics.__init__  sQ    zz)U3zz)U3"JJ~6 &

+= > S/BSr@   c                     |s |        S  | |j                   |j                  |j                  t        j	                  |j
                              S )N)r   r   r   r   )r   r   r   r   r   r   r   s     r2   r   zMetrics._from_generated  sH    5L%%%%"//,<<Y=W=WX	
 	
r@   )r9   r:   r;   rG   r   r   r   r   r   r   r   r   r   r   r   r   r?   r@   r2   r   r      sk     GS8GTE4. a(7(9o9AT T T 
 
r@   r   c                   x    e Zd ZU dZdZeed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 de	dd	fd
Z
ed        Zy	)r   a  The properties that enable an account to host a static website.

    :keyword bool enabled:
        Indicates whether this account is hosting a static website.
        The default value is `False`.
    :keyword str index_document:
        The default name of the index page under each directory.
    :keyword str error_document404_path:
        The absolute path of the custom 404 page.
    :keyword str default_index_document_path:
        Absolute path of the default index page.
    Fr   index_documenterror_document404_pathdefault_index_document_pathr   r   Nc                     |j                  dd      | _        | j                  rC|j                  d      | _        |j                  d      | _        |j                  d      | _        y d | _        d | _        d | _        y )Nr   Fr   r   r   )r   r   r   r   r   r   s     r2   r   zStaticWebsite.__init__A  si    zz)U3<<"(**-=">D*0**5M*ND'/5zz:W/XD,"&D*.D'/3D,r@   c                 |    |s |        S  | |j                   |j                  |j                  |j                        S )Nr   r   r   r   r   r   s     r2   r   zStaticWebsite._from_generatedL  s=    5L%%$33#,#C#C(1(M(M	
 	
r@   )r9   r:   r;   rG   r   r   r   r   r   r   r   r   r   r?   r@   r2   r   r   *  sd     GTESM!B$SM)3!)#.2	4 	4 	4 
 
r@   r   c                       e Zd ZU dZeed<   	 eed<   	 eed<   	 eed<   	 eed<   	 dee   dee   dedd	fd
Z	e
deed       deee      fd       Zed        Zy	)r   a
  CORS is an HTTP feature that enables a web application running under one
    domain to access resources in another domain. Web browsers implement a
    security restriction known as same-origin policy that prevents a web page
    from calling APIs in a different domain; CORS provides a secure way to
    allow one domain (the origin domain) to call APIs in another domain.

    :param list(str) allowed_origins:
        A list of origin domains that will be allowed via CORS, or "*" to allow
        all domains. The list of must contain at least one entry. Limited to 64
        origin domains. Each allowed origin can have up to 256 characters.
    :param list(str) allowed_methods:
        A list of HTTP methods that are allowed to be executed by the origin.
        The list of must contain at least one entry. For Azure Storage,
        permitted methods are DELETE, GET, HEAD, MERGE, POST, OPTIONS or PUT.
    :keyword list(str) allowed_headers:
        Defaults to an empty list. A list of headers allowed to be part of
        the cross-origin request. Limited to 64 defined headers and 2 prefixed
        headers. Each header can be up to 256 characters.
    :keyword list(str) exposed_headers:
        Defaults to an empty list. A list of response headers to expose to CORS
        clients. Limited to 64 defined headers and two prefixed headers. Each
        header can be up to 256 characters.
    :keyword int max_age_in_seconds:
        The number of seconds that the client/browser should cache a
        preflight response.
    allowed_originsallowed_methodsexposed_headersallowed_headersmax_age_in_secondsr   r   Nc                 "   dj                  |      | _        dj                  |      | _        dj                  |j                  dg             | _        dj                  |j                  dg             | _        |j                  dd      | _        y )N,r   r   r   r   )joinr   r   r   r   r   r   )r   r   r   r   s       r2   r   zCorsRule.__init__  sr    "xx8"xx8"xx

3Db(IJ"xx

3Db(IJ"(**-A1"Er@   rulesc                     | | S g }| D ]U  }t        |j                  |j                  |j                  |j                  |j
                        }|j                  |       W |S )Nr   r   r   r   r   )GeneratedCorsRuler   r   r   r   r   r)   )r   generated_cors_list	cors_rulegenerated_corss       r2   _to_generatedzCorsRule._to_generated  sp    =L  	7I. ) 9 9 ) 9 9 ) 9 9 ) 9 9#,#?#?N  &&~6	7 #"r@   c                      | |j                   g|j                  g|j                  g|j                  g|j                        S )N)r   r   r   r   r   s     r2   r   zCorsRule._from_generated  sH    &&'&&'&667&667(;;
 	
r@   )r9   r:   r;   rG   r   r   r   r   r   r   staticmethodr   r   r   r   r   r?   r@   r2   r   r   X  s    6 .n[FS	 FDI FY\ Fae F #Xd:&67 #HTJ[E\<] # #" 
 
r@   r   c                       e Zd ZU dZeed<   	 ded<   	 eed<   	 ded<   	 ee   ed<   	 eed	<   	 eed
<   	 eed<   	 eee	f   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 de	ddfdZ
ed        Zy)ContainerPropertiesa  Blob container's properties class.

    Returned ``ContainerProperties`` instances expose these values through a
    dictionary interface, for example: ``container_props["last_modified"]``.
    Additionally, the container name is available as ``container_props["name"]``.namer   last_modifiedetagLeasePropertiesleasepublic_accesshas_immutability_policyhas_legal_hold)immutable_storage_with_versioning_enabledmetadataContainerEncryptionScopeencryption_scopedeletedr   r   r   Nc                    d | _         |j                  d      | _        |j                  d      | _        t	        di || _        |j                  d      | _        |j                  d      | _        d | _        d | _	        |j                  d      | _
        |j                  d      | _        d | _        |j                  d      | _        |j                  d      }|r#t        ||j                  d	d
            | _        y y )NLast-ModifiedETagzx-ms-blob-public-accesszx-ms-has-immutability-policyzx-ms-has-legal-holdr   z.x-ms-immutable-storage-with-versioning-enabledzx-ms-default-encryption-scopez#x-ms-deny-encryption-scope-overrideF)default_encryption_scope!prevent_encryption_scope_overrider?   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r   r   r   s      r2   r   zContainerProperties.__init__  s    	#ZZ8JJv&	$.v.
#ZZ(AB'-zz2P'Q$$jj)>?

:. $9?Dt9u6#)::.M#N #$<)A28**=bdi2j%D! $r@   c                 H    |        }|j                   |_         |j                  j                  |_        |j                  j                  |_        t        j                  |      |_        |j                  j                  |_        |j                  j                  |_        |j                  j                  |_
        |j                  |_        |j                  |_        |j                  j                  |_        |j                  |_        t        j                  |      |_        |S N)r   
propertiesr   r   r   r   r   r   r   ,is_immutable_storage_with_versioning_enabledr   r   r   r   r   r   r   )r   r   propss      r2   r   z#ContainerProperties._from_generated  s    ^^
'22@@))..
%55i@'22@@(1(<(<(T(T%:C:N:N:{:{7!))!))(33BB"++!9!I!I)!Tr@   )r9   r:   r;   rG   r   r   r   r   r   r   r   r   r   r?   r@   r2   r   r     s    U I R
IY=C= c!!F</33X38nS9::Gd^-c]-  (  r@   r   c                        e Zd ZU dZee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed	<   	 	 	 	 dde	dee   dee   dee   dd
f
 fdZ
d Zd Zed        Z xZS )ContainerPropertiesPageda  An Iterable of Container properties.

    :param Callable command: Function to retrieve the next page of items.
    :param Optional[str] prefix: Filters the results to return only containers whose names
        begin with the specified prefix.
    :param Optional[int] results_per_page: The maximum number of container names to retrieve per call.
    :param Optional[str] continuation_token: An opaque continuation token.
    service_endpointprefixmarkerresults_per_pagecontinuation_tokenlocation_moder   current_pageNcommandr   c                     t         t        |   | j                  | j                  |xs d       || _        d | _        || _        d | _        || _	        d | _
        g | _        y N )get_nextextract_datar   )r   r   r   _get_next_cb_extract_data_cb_commandr   r   r   r   r   r   )r   r   r   r   r   r   s        r2   r   z!ContainerPropertiesPaged.__init__  sk     	&6&&..17R 	7 	

   $ 0!r@   c                     	 | j                  |xs d | j                  t        | j                        S # t        $ r}t        |       Y d }~y d }~ww xY wN)r   
maxresultsr   use_locationr   r   r   r   r   r   r   r   errors      r2   r   z%ContainerPropertiesPaged._get_next_cb  W    	)==)1T003!//	 ! 1 1
 ! 	)!%((	)   03 	AAAc                    |\  | _         | _        | j                  j                  | _        | j                  j                  | _        | j                  j                  | _        | j                  j
                  | _        | j                  j                  D cg c]  }| j                  |       c}| _	        | j                  j                  xs d | j                  fS c c}w r   )r   	_responser   r   r   max_resultsr   container_items_build_itemr   next_marker)r   get_next_returnitems      r2   r   z)ContainerPropertiesPaged._extract_data_cb"  s    -<*DN $ ? ?nn++nn++ $ : :@D@^@^_T--d3_~~))1T43D3DDD `s   Cc                 ,    t         j                  |       S r   )r   r   )r   s    r2   r   z$ContainerPropertiesPaged._build_item,  s    "22488r@   NNN)r9   r:   r;   rG   r   r   r   r   r   r   r   r   r   r   r   r   r   s   @r2   r   r     s     sm#SM@SM@sm#? %FC= 7,--- !%*.,0	 #3- %SM	
 
&)E 9 9r@   r   c                   ^    e Zd ZU dZdZed   ed<   	 dZee   ed<   	 de	ddfdZ
ed	        Zy)
ImmutabilityPolicya]  Optional parameters for setting the immutability policy of a blob, blob snapshot or blob version.

    .. versionadded:: 12.10.0
        This was introduced in API version '2020-10-02'.

    :keyword ~datetime.datetime expiry_time:
        Specifies the date time when the blobs immutability policy is set to expire.
    :keyword str or ~azure.storage.blob.BlobImmutabilityPolicyMode policy_mode:
        Specifies the immutability policy mode to set on the blob.
        Possible values to set include: "Locked", "Unlocked".
        "Mutable" can only be returned by service, don't set to "Mutable".
    Nr   expiry_timepolicy_moder   r   c                 `    |j                  dd       | _        |j                  dd       | _        y )Nr  r  )popr  r  r   s     r2   r   zImmutabilityPolicy.__init__D  s(    !::mT:!::mT:r@   c                      |        }|j                   j                  |_        |j                   j                  |_        |S r   )r   immutability_policy_expires_onr  immutability_policy_moder  )r   r   immutability_policys      r2   r   z"ImmutabilityPolicy._from_generatedH  s:    !e*3*>*>*]*]'*3*>*>*W*W'""r@   )r9   r:   r;   rG   r  r   r   r  r   r   r   r   r   r?   r@   r2   r   r   1  sS     )-K*%,V!%K#%D; ; ; # #r@   r   c                   \    e Zd ZU dZeed<   	 ee   ed<   	 eeeef      ed<   	 deddfdZ	y)	FilteredBlobz'Blob info from a Filter Blobs API call.r   container_nametagsr   r   Nc                     |j                  dd       | _        |j                  dd       | _        |j                  dd       | _        y )Nr   r  r  )r   r   r  r  r   s     r2   r   zFilteredBlob.__init__Z  s:    JJvt,	$jj)94@JJvt,	r@   )
r9   r:   r;   rG   r   r   r   r   r   r   r?   r@   r2   r
  r
  P  sC    1
ISM!
4S>
""'- - -r@   r
  c                   \    e Zd ZU dZeed<   	 eed<   	 ee   ed<   	 deddfdZe	d	        Z
y)
r   zBlob Lease Properties.statusstatedurationr   r   Nc                     t        |j                  d            | _        t        |j                  d            | _        t        |j                  d            | _        y )Nzx-ms-lease-statuszx-ms-lease-statezx-ms-lease-duration)r   r   r  r  r  r   s     r2   r   zLeaseProperties.__init__j  sD    $VZZ0C%DE#FJJ/A$BC
&vzz2G'HIr@   c                      |        }t        |j                  j                        |_        t        |j                  j                        |_        t        |j                  j                        |_        |S r   )r   r   lease_statusr  lease_stater  lease_durationr  )r   r   r   s      r2   r   zLeaseProperties._from_generatedo  sV    %i&:&:&G&GH$Y%9%9%E%EF'	(<(<(K(KLr@   )r9   r:   r;   rG   r   r   r   r   r   r   r   r?   r@   r2   r   r   `  sL     KHJ\sm^J J J
  r@   r   c                       e Zd ZU dZdZee   ed<   	 dZee   ed<   	 dZ	ee   ed<   	 dZ
ee   ed<   	 dZee   ed<   	 dZee   ed<   	 	 	 	 	 	 	 ddee   dee   dee   dee   dee   dee   d	ed
dfdZed        Zy)ContentSettingsa  The content settings of a blob.

    :param Optional[str] content_type:
        The content type specified for the blob. If no content type was
        specified, the default content type is application/octet-stream.
    :param Optional[str] content_encoding:
        If the content_encoding has previously been set
        for the blob, that value is stored.
    :param Optional[str] content_language:
        If the content_language has previously been set
        for the blob, that value is stored.
    :param Optional[str] content_disposition:
        content_disposition conveys additional information about how to
        process the response payload, and also can be used to attach
        additional metadata. If content_disposition has previously been set
        for the blob, that value is stored.
    :param Optional[str] cache_control:
        If the cache_control has previously been set for
        the blob, that value is stored.
    :param Optional[bytearray] content_md5:
        If the content_md5 has been set for the blob, this response
        header is stored so that the client can check for message content
        integrity.
    Ncontent_typecontent_encodingcontent_languagecontent_dispositioncache_controlcontent_md5r   r   c                 <   |xs |j                  d      | _        |xs |j                  d      | _        |xs |j                  d      | _        |xs |j                  d      | _        |xs |j                  d      | _        |xs |j                  d      | _        y )NzContent-TypezContent-EncodingzContent-LanguagezContent-MD5zContent-DispositionzCache-Control)r   r  r  r  r  r  r  )r   r  r  r  r  r  r  r   s           r2   r   zContentSettings.__init__  s     )FFJJ~,F 0 RFJJ?Q4R 0 RFJJ?Q4R&C&**]*C#6#[&**EZ:[ *Ifjj.Ir@   c                     |        }|j                   j                  xs d |_        |j                   j                  xs d |_        |j                   j                  xs d |_        |j                   j                  xs d |_        |j                   j
                  xs d |_        |j                   j                  xs d |_        |S r   )r   r  r  r  r  r  r  )r   r   settingss      r2   r   zContentSettings._from_generated  s    5 ) 4 4 A A IT$-$8$8$I$I$QT!$-$8$8$I$I$QT!(33??G4'0';';'O'O'WSW$!*!5!5!C!C!Ktr@   )NNNNNN)r9   r:   r;   rG   r  r   r   r   r  r  r  r  r  	bytearrayr   r   r   r   r?   r@   r2   r  r  x  s   2 #'L(3-&2&*hsm*6&*hsm*6)-#-9#'M8C='3'+K)$+1 -1*.*.-1'++/J$SMJ"3-J #3-J &c]	J
  }J i(J J 
J"  r@   r  c                       e Zd ZU dZee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed	<   	 ed   ed
<   	 deddfdZ	e
d        Zy)CopyPropertiesa!  Blob Copy Properties.

    These properties will be `None` if this blob has never been the destination
    in a Copy Blob operation, or if this blob has been modified after a concluded
    Copy Blob operation, for example, using Set Blob Properties, Upload Blob, or Commit Block List.
    idsourcer  progressr   completion_timestatus_descriptionincremental_copydestination_snapshotr   r   Nc                 v   |j                  d      | _        |j                  d      | _        t        |j                  d            | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        y )	Nzx-ms-copy-idzx-ms-copy-sourcezx-ms-copy-statuszx-ms-copy-progresszx-ms-copy-completion-timezx-ms-copy-status-descriptionzx-ms-incremental-copyzx-ms-copy-destination-snapshot)
r   r%  r&  r   r  r'  r(  r)  r*  r+  r   s     r2   r   zCopyProperties.__init__  s    **^,jj!34$VZZ0B%CD

#78%zz*EF"(**-K"L &

+B C$*JJ/O$P!r@   c                     |        }|j                   j                  xs d |_        t        |j                   j                        xs d |_        |j                   j                  xs d |_        |j                   j                  xs d |_	        |j                   j                  xs d |_        |j                   j                  xs d |_        |j                   j                  xs d |_        |j                   j                  xs d |_        |S r   )r   copy_idr%  r   copy_statusr  copy_sourcer&  copy_progressr'  copy_completion_timer(  copy_status_descriptionr)  r*  r+  )r   r   copys      r2   r   zCopyProperties._from_generated  s    u&&..6$$Y%9%9%E%EFN$**66>$!,,::Bd(33HHPD"+"6"6"N"N"VRV ) 4 4 E E M$-$8$8$M$M$UQU!r@   )r9   r:   r;   rG   r   r   r   r   r   r   r   r   r?   r@   r2   r$  r$    s     	%SMISMM sm6 j))  !%0tn$N #:..4Q Q Q 
 
r@   r$  c                   r    e Zd ZU dZeed<   	 eed<   	 eed<   	 ej                  fdededdfdZ	e
d        Zy)		BlobBlockzBlockBlob Block class.

    :param str block_id:
        Block id.
    :param BlockState state:
        Block state. Possible values: BlockState.COMMITTED | BlockState.UNCOMMITTED
    block_idr  sizer   Nc                 .    || _         || _        d | _        y r   )r%  r  r8  )r   r7  r  s      r2   r   zBlobBlock.__init__  s    
	r@   c                     	 t        |j                        }|j                  d      } | |      }|j                  |_        |S # t        $ r |j                  }Y 2w xY w)Nzutf-8)r   r   decodeUnicodeDecodeErrorr8  )r   r   decoded_bytesr7  blocks        r2   r   zBlobBlock._from_generated  sZ    	&29>>BM$++G4H H^^
	 " 	& ~~H	&s   &A AA)r9   r:   r;   rG   r   r   rC   r   rI   r   r   r   r?   r@   r2   r6  r6    sZ     M
I:D:K:K  Z PT 
  r@   r6  c            
       v    e Zd ZU dZdZee   ed<   	 dZee   ed<   	 e	ed<   	 d
dddee   dee   de	ddfd	Z
y)r   zPage Range for page blob.

    :param int start:
        Start of page range in bytes.
    :param int end:
        End of page range in bytes.
    Nr"   r#   r$   F)r$   r   c                .    || _         || _        || _        y r   r!   )r   r"   r#   r$   s       r2   r   zPageRange.__init__1  s    
r@   NN)r9   r:   r;   rG   r"   r   r   r   r#   r   r   r?   r@   r2   r   r   !  sf      E8C='C#%M-bg hsm # [_ lp r@   c                   <     e Zd Zd fd	Zd Zd Zed        Z xZS )PageRangePagedc                     t         t        |   | j                  | j                  |xs d       || _        || _        d | _        g | _        y r   )	r   rC  r   r   r   r   r   r   r   )r   r   r   r   r   s       r2   r   zPageRangePaged.__init__8  sR    nd,&&..17R 	- 	

   0!r@   c                     	 | j                  |xs d | j                  t        | j                        S # t        $ r}t        |       Y d }~y d }~ww xY wr   r   r   s      r2   r   zPageRangePaged._get_next_cbC  r   r   c                     |\  | _         | _        | j                  | j                        | _        | j                  j                  xs d | j                  fS r   )r   r   _build_pager   r   )r   r   s     r2   r   zPageRangePaged._extract_data_cbM  sH    -<*DN ,,T^^<~~))1T43D3DDDr@   c                 (    | st         t        |       S r   )StopIterationr3   )responses    r2   rG  zPageRangePaged._build_pageS  s    x((r@   rA  )	r9   r:   r;   r   r   r   r   rG  r   r   s   @r2   rC  rC  7  s'    	)E ) )r@   rC  c                   4   e Zd ZU dZdZeed<   	 dZeed<   	 dZeed<   	 dZ	eed<   	 dZ
eed<   	 dZeed<   	 ee   ed	<   	 ee   ed
<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 	 	 	 	 	 	 ddedededededededdfdZd Zededd fd       Zy)ContainerSasPermissionsa=  ContainerSasPermissions class to be used with the
    :func:`~azure.storage.blob.generate_container_sas` function and
    for the AccessPolicies used with
    :func:`~azure.storage.blob.ContainerClient.set_container_access_policy`.

    :param bool read:
        Read the content, properties, metadata or block list of any blob in the
        container. Use any blob in the container as the source of a copy operation.
    :param bool write:
        For any blob in the container, create or write content, properties,
        metadata, or block list. Snapshot or lease the blob. Resize the blob
        (page blob only). Use the blob as the destination of a copy operation
        within the same account. Note: You cannot grant permissions to read or
        write container properties or metadata, nor to lease a container, with
        a container SAS. Use an account SAS instead.
    :param bool delete:
        Delete any blob in the container. Note: You cannot grant permissions to
        delete a container with a container SAS. Use an account SAS instead.
    :param bool delete_previous_version:
        Delete the previous blob version for the versioning enabled storage account.
    :param bool list:
        List blobs in the container.
    :param bool tag:
        Set or get tags on the blobs in the container.
    :keyword bool add:
        Add a block to an append blob.
    :keyword bool create:
        Write a new blob, snapshot a blob, or copy a blob to a new blob.
    :keyword bool permanent_delete:
        To enable permanent delete on the blob is permitted.
    :keyword bool filter_by_tags:
        To enable finding blobs by tags.
    :keyword bool move:
        Move a blob or a directory and its contents to a new location.
    :keyword bool execute:
        Get the system properties and, if the hierarchical namespace is enabled for the storage account,
        get the POSIX ACL of a blob.
    :keyword bool set_immutability_policy:
        To enable operations related to set/delete immutability policy.
        To get immutability policy, you just need read permission.
    Fr   r   r   delete_previous_versionlisttagaddcreatepermanent_deletemoveexecuteset_immutability_policyr   r   Nc                 l   || _         |j                  dd      | _        |j                  dd      | _        || _        || _        || _        |j                  dd      | _        || _        || _	        |j                  dd      | _
        |j                  dd      | _        |j                  dd      | _        |j                  dd      | _        | j                   rd	nd
| j                  rdnd
z   | j                  rdnd
z   | j                  rdnd
z   | j
                  rdnd
z   | j                  rdnd
z   | j                  rdnd
z   | j                  rdnd
z   | j                  rdnd
z   | j                  rdnd
z   | j                  rdnd
z   | j                  rdnd
z   | j                  r
dz   | _        y d
z   | _        y )NrP  FrQ  rR  filter_by_tagsrS  rT  rU  r1   r   ar0   wdxyltfmei)r   r  rP  rQ  r   r   rM  rR  rN  rO  rW  rS  rT  rU  _str)r   r   r   r   rN  rM  rO  r   s           r2   r   z ContainerSasPermissions.__init__  s    	::eU+jj51
'>$ &

+=u E	$jj)95AJJvu-	zz)U3'-zz2KU'S$!YYcB!XXc2/![[cb2 "ZZcR1 "[[cb	2
 "99crC "22c< "YYcB0 "XXc2/ "00cb	: "YYcB
0 "\\cr3 "99cC	 @BC	r@   c                     | j                   S r   rc  r   s    r2   __str__zContainerSasPermissions.__str__      yyr@   
permissionc                     d|v }d|v }d|v }d|v }d|v }d|v }d|v }d|v }	d	|v }
d
|v }d|v }d|v }d|v } | ||||	||
|||||||      }|S )a  Create a ContainerSasPermissions from a string.

        To specify read, write, delete, or list permissions you need only to
        include the first letter of the word in the string. E.g. For read and
        write permissions, you would provide a string "rw".

        :param str permission: The string which dictates the read, write, delete,
            and list permissions.
        :return: A ContainerSasPermissions object
        :rtype: ~azure.storage.blob.ContainerSasPermissions
        r1   rX  r0   rY  rZ  r[  r\  r]  r^  r_  r`  ra  rb  )r   r   r   rN  rM  rO  rP  rQ  rR  rW  rS  rT  rU  r?   )r   ri  p_readp_addp_createp_writep_deletep_delete_previous_versionp_permanent_deletep_listp_tagp_filter_by_tagsp_move	p_executep_set_immutability_policyparseds                   r2   from_stringz#ContainerSasPermissions.from_string  s     
"z!*$#*$$':$5! J.
"z!*,
":%	$':$5!&v-FEW\$7IZj )Mfh
 r@   )FFFFFF)r9   r:   r;   rG   r   r   r   r   r   rM  rN  rO  r   r   r   rg  r   r   ry  r?   r@   r2   rL  rL  [  sB   (T D$0E41FD2$)T)D$0C8	$(TNJtn$>
4.Hd^(%d^+D !(-"D"D"D "D 	"D
 "&"D "D "D 
"DH S -F  r@   rL  c            
           e Zd ZU dZeeeef      ed<   	 eedef      ed<   	 eedef      ed<   	 	 	 	 d
deedef      deeedf      deeedf      ddfd	Z	y)r   a	  Access Policy class used by the set and get access policy methods in each service.

    A stored access policy can specify the start time, expiry time, and
    permissions for the Shared Access Signatures with which it's associated.
    Depending on how you want to control access to your resource, you can
    specify all of these parameters within the stored access policy, and omit
    them from the URL for the Shared Access Signature. Doing so permits you to
    modify the associated signature's behavior at any time, as well as to revoke
    it. Or you can specify one or more of the access policy parameters within
    the stored access policy, and the others on the URL. Finally, you can
    specify all of the parameters on the URL. In this case, you can use the
    stored access policy to revoke the signature, but not to modify its behavior.

    Together the Shared Access Signature and the stored access policy must
    include all fields required to authenticate the signature. If any required
    fields are missing, the request will fail. Likewise, if a field is specified
    both in the Shared Access Signature URL and in the stored access policy, the
    request will fail with status code 400 (Bad Request).

    :param permission:
        The permissions associated with the shared access signature. The
        user is restricted to operations allowed by the permissions.
        Required unless an id is given referencing a stored access policy
        which contains this field. This field must be omitted if it has been
        specified in an associated stored access policy.
    :type permission: Optional[Union[ContainerSasPermissions, str]]
    :param expiry:
        The time at which the shared access signature becomes invalid.
        Required unless an id is given referencing a stored access policy
        which contains this field. This field must be omitted if it has
        been specified in an associated stored access policy. Azure will always
        convert values to UTC. If a date is passed in without timezone info, it
        is assumed to be UTC.
    :paramtype expiry: Optional[Union[str, datetime]]
    :param start:
        The time at which the shared access signature becomes valid. If
        omitted, start time for this call is assumed to be the time when the
        storage service receives the request. Azure will always convert values
        to UTC. If a date is passed in without timezone info, it is assumed to
        be UTC.
    :paramtype start: Optional[Union[str, datetime]]
    ri  r   expiryr"   NrL  r   c                 .    || _         || _        || _        y r   )r"   r{  ri  )r   ri  r{  r"   s       r2   r   zAccessPolicy.__init__  s    
 
$r@   r   )
r9   r:   r;   rG   r   r	   rL  r   r   r   r?   r@   r2   r   r     s    )V 6;<==2U:s?+,,HE*c/*++F MQ3726%"5)BC)G#HI%sJ/0% c:o./% 
	%r@   r   c                   *   e Zd ZU dZdZeed<   	 ee   ed<   	 ee   ed<   	 dZeed<   	 dZ	eed<   	 dZ
eed<   	 dZeed	<   	 ee   ed
<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 	 	 	 	 	 	 	 ddedededededed	ededdfdZd Zededd fd       Zy)BlobSasPermissionsa  BlobSasPermissions class to be used with the
    :func:`~azure.storage.blob.generate_blob_sas` function.

    :param bool read:
        Read the content, properties, metadata and block list. Use the blob as
        the source of a copy operation.
    :param bool add:
        Add a block to an append blob.
    :param bool create:
        Write a new blob, snapshot a blob, or copy a blob to a new blob.
    :param bool write:
        Create or write content, properties, metadata, or block list. Snapshot
        or lease the blob. Resize the blob (page blob only). Use the blob as the
        destination of a copy operation within the same account.
    :param bool delete:
        Delete the blob.
    :param bool delete_previous_version:
        Delete the previous blob version for the versioning enabled storage account.
    :param bool tag:
        Set or get tags on the blob.
    :keyword bool permanent_delete:
        To enable permanent delete on the blob is permitted.
    :keyword bool move:
        Move a blob or a directory and its contents to a new location.
    :keyword bool execute:
        Get the system properties and, if the hierarchical namespace is enabled for the storage account,
        get the POSIX ACL of a blob.
    :keyword bool set_immutability_policy:
        To enable operations related to set/delete immutability policy.
        To get immutability policy, you just need read permission.
    Fr   rP  rQ  r   r   rM  rO  rR  rS  rT  rU  r   r   Nc                    || _         || _        || _        || _        || _        || _        |j                  dd      | _        || _        |j                  dd      | _	        |j                  dd      | _
        |j                  dd      | _        | j                   rdnd| j                  rdndz   | j                  rd	ndz   | j                  rd
ndz   | j                  rdndz   | j
                  rdndz   | j                  rdndz   | j                  rdndz   | j                  rdndz   | j                  rdndz   | j                  r
dz   | _        y dz   | _        y )NrR  FrS  rT  rU  r1   r   rX  r0   rY  rZ  r[  r\  r^  r`  ra  rb  )r   rP  rQ  r   r   rM  r  rR  rO  rS  rT  rU  rc  )	r   r   rP  rQ  r   r   rM  rO  r   s	            r2   r   zBlobSasPermissions.__init__b  sX    	
'>$ &

+=u EJJvu-	zz)U3'-zz2KU'S$!YYcB!XXc2/![[cb2 "ZZcR1 "[[cb	2
 "99crC "22c< "XXc2/ "YYcB0 "\\cr	3 "99c
C	 @B
C	r@   c                     | j                   S r   re  rf  s    r2   rg  zBlobSasPermissions.__str__  rh  r@   ri  c                     d|v }d|v }d|v }d|v }d|v }d|v }d|v }d|v }	d	|v }
d
|v }d|v } | |||||||	||
||      }|S )a  Create a BlobSasPermissions from a string.

        To specify read, add, create, write, or delete permissions you need only to
        include the first letter of the word in the string. E.g. For read and
        write permissions, you would provide a string "rw".

        :param str permission: The string which dictates the read, add, create,
            write, or delete permissions.
        :return: A BlobSasPermissions object
        :rtype: ~azure.storage.blob.BlobSasPermissions
        r1   rX  r0   rY  rZ  r[  r\  r^  r`  ra  rb  )r   rP  rQ  r   r   rM  rO  rR  rS  rT  rU  r?   )r   ri  rk  rl  rm  rn  ro  rp  rq  rs  ru  rv  rw  rx  s                 r2   ry  zBlobSasPermissions.from_string  s     
"z!*$#*$$':$5! J.z!
":%	$':$5!&eHGT\-FEdv )Mfh r@   )FFFFFFF)r9   r:   r;   rG   r   r   r   r   r   r   rM  rO  r   r   rg  r   r   ry  r?   r@   r2   r~  r~  (  sC   @ D$+	$*TNJE4,FD-$)T)C3tn$>
4.Hd^(%d^+D !(-DDD D 	D
 D "&D D D 
DB S -A  r@   r~  c                   J    e Zd ZU dZeed<   	 eed<   	 eed<   	 dededdfdZy)CustomerProvidedEncryptionKeya  
    All data in Azure Storage is encrypted at-rest using an account-level encryption key.
    In versions 2018-06-17 and newer, you can manage the key used to encrypt blob contents
    and application metadata per-blob by providing an AES-256 encryption key in requests to the storage service.

    When you use a customer-provided key, Azure Storage does not manage or persist your key.
    When writing data to a blob, the provided key is used to encrypt your data before writing it to disk.
    A SHA-256 hash of the encryption key is written alongside the blob contents,
    and is used to verify that all subsequent operations against the blob use the same encryption key.
    This hash cannot be used to retrieve the encryption key or decrypt the contents of the blob.
    When reading a blob, the provided key is used to decrypt your data after reading it from disk.
    In both cases, the provided encryption key is securely discarded
    as soon as the encryption or decryption process completes.

    :param str key_value:
        Base64-encoded AES-256 encryption key value.
    :param str key_hash:
        Base64-encoded SHA256 of the encryption key.
    	key_valuekey_hash	algorithmr   Nc                 .    || _         || _        d| _        y )NAES256)r  r  r  )r   r  r  s      r2   r   z&CustomerProvidedEncryptionKey.__init__  s    " !r@   )r9   r:   r;   rG   r   r   r   r?   r@   r2   r  r    s;    ( N6M6Nb"# " " "r@   r  c                   N    e Zd ZU dZeed<   	 eed<   	 dededdfdZe	d        Z
y)	r   a>  The default encryption scope configuration for a container.

    This scope is used implicitly for all future writes within the container,
    but can be overridden per blob operation.

    .. versionadded:: 12.2.0

    :param str default_encryption_scope:
        Specifies the default encryption scope to set on the container and use for
        all future writes.
    :param bool prevent_encryption_scope_override:
        If true, prevents any request from specifying a different encryption scope than the scope
        set on the container. Default value is false.
    r   r   r   r   Nc                 @    || _         |j                  dd      | _        y )Nr   F)r   r   r   )r   r   r   s      r2   r   z!ContainerEncryptionScope.__init__  s    (@%17<_af1g.r@   c                     |j                   j                  r8 | |j                   j                  |j                   j                  xs d      }|S y )NF)r   )r   r   r   )r   r   scopes      r2   r   z(ContainerEncryptionScope._from_generated  sI    88$$==2;2F2F2h2h2qlqE Lr@   )r9   r:   r;   rG   r   r   r   r   r   r   r   r?   r@   r2   r   r     sQ     "!'++!h h h h  r@   r   c                        e Zd ZdZdeddfdZy)rc   zDefines the input or output JSON serialization for a blob data query.

    :keyword str delimiter: The line separator character, default value is '\\n'.
    r   r   Nc                 2    |j                  dd      | _        y )N	delimiter
)r  r  r   s     r2   r   zDelimitedJsonDialect.__init__  s    K6r@   r9   r:   r;   rG   r   r   r?   r@   r2   rc   rc     s    
7 7 7r@   rc   c                        e Zd ZdZdeddfdZy)rb   a  Defines the input or output delimited (CSV) serialization for a blob query request.

    :keyword str delimiter:
        Column separator, defaults to ','.
    :keyword str quotechar:
        Field quote, defaults to '"'.
    :keyword str lineterminator:
        Record separator, defaults to '\\n'.
    :keyword str escapechar:
        Escape char, defaults to empty.
    :keyword bool has_header:
        Whether the blob data includes headers in the first line. The default value is False, meaning that the
        data will be returned inclusive of the first line. If set to True, the data will be returned exclusive
        of the first line.
    r   r   Nc                     |j                  dd      | _        |j                  dd      | _        |j                  dd      | _        |j                  dd      | _        |j                  d	d
      | _        y )Nr  r   	quotechar"lineterminatorr  
escapecharr   
has_headerF)r  r  r  r  r  r  r   s     r2   r   zDelimitedTextDialect.__init__	  s^    K5K5$jj)94@ **\26 **\59r@   r  r?   r@   r2   rb   rb     s     : : :r@   rb   c                   ,     e Zd ZdZdeddf fdZ xZS )ArrowDialecta@  field of an arrow schema.

    All required parameters must be populated in order to send to Azure.

    :param ~azure.storage.blob.ArrowType type: Arrow field type.
    :keyword str name: The name of the field.
    :keyword int precision: The precision of the field.
    :keyword int scale: The scale of the field.
    r   r   Nc                 0    t        t        | 
  dd|i| y )Ntyper?   )r   r  r   )r   r  r   r   s      r2   r   zArrowDialect.__init__  s    lD*???r@   )r9   r:   r;   rG   r   r   r   r   s   @r2   r  r    s$    @s @t @ @r@   r  c                   $    e Zd ZdZdZdZdZdZdZy)	ArrowTypeint64r   ztimestamp[ms]stringdoubledecimalN)	r9   r:   r;   INT64BOOLTIMESTAMP_MSSTRINGDOUBLEDECIMALr?   r@   r2   r  r     s     ED"LFFGr@   r  c                   :    e Zd ZU dZeed<   	 eed<   	 deddfdZy)ObjectReplicationRule)Policy id and rule ids applied to a blob.rule_idr  r   r   Nc                 `    |j                  dd       | _        |j                  dd       | _        y )Nr  r  )r  r  r  r   s     r2   r   zObjectReplicationRule.__init__2  s&    zz)T2jj40r@   )r9   r:   r;   rG   r   r   r   r   r?   r@   r2   r  r  *  s(    3LKE1 1 1r@   r  c                   @    e Zd ZU dZeed<   	 ee   ed<   	 deddfdZ	y)ObjectReplicationPolicyr  	policy_idr   r   r   Nc                 `    |j                  dd       | _        |j                  dg       | _        y )Nr  r   )r  r  r   r   s     r2   r   z ObjectReplicationPolicy.__init__@  s&    K6ZZ,
r@   )
r9   r:   r;   rG   r   r   r   r  r   r   r?   r@   r2   r  r  7  s2    3Nx%&&m- - -r@   r  c                   v   e Zd ZU dZeed<   	 eed<   	 ee   ed<   	 ded<   	 eeef   ed<   	 ded	<   	 eed
<   	 eed<   	 ee   ed<   	 ee   ed<   	 ee	   ed<   	 ee   ed<   	 e	ed<   	 ded<   	 e
ed<   	 eed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee	   ed<   	 ee	   ed<   	 ed   ed<   	 ee   ed<   	 ded<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee	   ed <   	 eee      ed!<   	 ee   ed"<   	 ed   ed#<   	 ee   ed$<   	 eeeef      ed%<   	 ee	   ed&<   	 eed'<   	 ee	   ed(<   	 d)ed*d+fd,Zy+)-BlobPropertieszBlob Properties.r   rt   snapshotr5   	blob_typer   r   r   r   r8  content_range!append_blob_committed_block_countis_append_blob_sealedpage_blob_sequence_numberserver_encryptedr$  r4  content_settingsr   	blob_tierrehydrate_priorityblob_tier_change_timeblob_tier_inferredr   deleted_timeremaining_retention_dayscreation_timearchive_statusencryption_key_sha256r   request_server_encrypted$object_replication_source_properties%object_replication_destination_policylast_accessed_on	tag_countr  has_versions_onlyr  r   r   r   Nc                 4   |j                  d      | _        d | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      rt        |d         nd | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t%        d!i || _        t)        d!i || _        t-        d!i || _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d| _        d | _        d | _        |j                  d      | _        |j                  d      | _         |j                  d      | _!        |j                  d      | _"        |j                  d      | _#        |j                  d      | _$        |j                  d      | _%        |j                  d      | _&        |j                  d      | _'        d | _(        tS        |j                  d      |j                  d            | _*        |j                  d       | _+        d | _,        y )"Nr   zx-ms-snapshotzx-ms-version-idzx-ms-is-current-versionzx-ms-blob-typer   encrypted_metadatar   r   zContent-LengthzContent-Rangezx-ms-blob-committed-block-countzx-ms-blob-sealedzx-ms-blob-sequence-numberzx-ms-server-encryptedzx-ms-access-tierzx-ms-rehydrate-priorityzx-ms-access-tier-change-timezx-ms-access-tier-inferredFzx-ms-creation-timezx-ms-archive-statuszx-ms-encryption-key-sha256zx-ms-encryption-scoper  zx-ms-or-policy-idzx-ms-last-access-timezx-ms-tag-countz#x-ms-immutability-policy-until-datezx-ms-immutability-policy-mode)r  r  zx-ms-legal-holdr?   )-r   r   rt   r  
version_idis_current_versionr5   r  r   r  r   r   r8  r  r  r  r  r  r$  r4  r  r  r   r   r  r  r  r  r   r  r  r  r  r  r   r  r  r  r  r  r  r   r  r   r  r   s     r2   r   zBlobProperties.__init__  s   JJv&	

?3 **%67"(**-F"GJJ'( "&)9":;/3 	

:."(**-A"B#ZZ8JJv&	JJ/0	#ZZ817<]1^.%+ZZ0B%C")/4O)P& &

+B C",V,	 / 9& 9$.v.
$67"(**-F"G%+ZZ0N%O""(**-H"I (,%#ZZ(<=$jj)>?%+ZZ0L%M" &

+B C(.

3J(K%4:JJ?e4f15;ZZ@S5T2 &

+B C$45	#5&**MrBsBH**MlBm$o $jj):;!%r@   )r9   r:   r;   rG   r   r   r   r   r   r   r  r   rL   r   r  r   r   r   r?   r@   r2   r  r  E  s   
IN2smD-38n@M
I
I* C= +'/}4D#D>)7'},=
6%%78())/ !%I#J//: &Dd^(:&&P&sm+l6SM!!#C=(:sm#f 'tn,)*248O3P*QQS+3C=8Mz**O}"
4S>
"".~%9++UTN"P)& )& )&r@   r  c                       e Zd ZU dZee   ed<   	 eed<   	 ee   ed<   	 ee   ed<   	 	 	 	 	 d	dee   dedee   dee   ddf
dZ	y)
BlobQueryErrorz0The error happened during quick query operation.r   is_fataldescriptionpositionNr   c                 <    || _         || _        || _        || _        y r   )r   r  r  r  )r   r   r  r  r  s        r2   r   zBlobQueryError.__init__  s!     
 & r@   )NFNN)
r9   r:   r;   rG   r   r   r   r   r   r   r?   r@   r2   r  r    s    :C= NK #%sm6 &*%)"&		!c]	!	! c]	! 3-		!
 
	!r@   r  N)Jenumr   typingr   r   r   r   r   r	   r
   
azure.corer   azure.core.pagingr   azure.core.exceptionsr   _sharedr   _shared.response_handlersr   r   _shared.modelsr   r   _generated.modelsr   GenAccessPolicyr   r   r   r   GeneratedLoggingr   GeneratedMetricsr   GeneratedRetentionPolicyr   GeneratedStaticWebsiter   r   r3   r   r5   rC   rL   rV   ra   ri   rq   ry   r   r   r   r   r
  r   r  r$  r6  r   rC  objectrL  r~  r  r   rc   rb   r  r  r  r  r  r  r?   r@   r2   <module>r     s`    L L L . * 3 + ] 5 > ) < : : J F!+ z  d;.?  FsD$;  d&=  	sD,C 	#t/F &T-D K30G K&3(? 4d6M 
. 
>,
+ ,
^(
 (
V+
* +
\K
  K
\C) CLB9| B9J# #>-9 - i 0Ai AH>Y >B!	 !H	 ,!)\ !)HLf L^;%? ;%|{ {|"F "D#v #L79 7:9 :2@: @T%< 
1I 
1-i -D&Y D&N!V !r@   