
    %j3                        d Z ddlmZ ddlmZ ddlZddlZddlZddlmZ ddl	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mZmZmZmZ dd	lmZmZ dd
l	mZ ddgZ G d de
          ZdS )z
    Hindsight HTTP API

    HTTP API for Hindsight

    The version of the OpenAPI document: 0.6.1
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
    )annotations)getfullargspecN)datetime)	BaseModel
ConfigDictField	StrictStrValidationErrorfield_validator)Optional)UnionAnyListSetTYPE_CHECKINGr   Dict)LiteralSelf)r   r   strc                       e Zd ZU dZdZded<   dZded<   erdZded<   ndZd	ed<   d
dhZ	ded<   dddZ
d fdZ ed          d             Zed d            Zed!d            Zd"dZd#dZd"dZ xZS )$	Timestampa)  
    When the content occurred. Accepts an ISO 8601 datetime string (e.g. '2024-01-15T10:30:00Z'), null/omitted (defaults to now), or the special string 'unset' to explicitly store without any timestamp (use this for timeless content such as fictional documents or static reference material).
    NzOptional[datetime]anyof_schema_1_validatorzOptional[StrictStr]anyof_schema_2_validatorzOptional[Union[datetime, str]]actual_instancer   r   r   zSet[str]any_of_schemasT )validate_assignmentprotected_namespacesreturnNonec                    |r]t          |          dk    rt          d          |rt          d          t                                          |d                    d S  t                      j        di | d S )N   zJIf a position argument is used, only 1 is allowed to set `actual_instance`zAIf a position argument is used, keyword arguments cannot be used.r   )r   r   )len
ValueErrorsuper__init__)selfargskwargs	__class__s      m/home/rurouni/.hermes/hermes-agent/venv/lib/python3.11/site-packages/hindsight_client_api/models/timestamp.pyr&   zTimestamp.__init__1   s     	'4yy1}} !mnnn f !deeeGGT!W55555EGG&&v&&&&&    c                   ||S t                                           }g }	 ||_        |S # t          t          f$ r,}|                    t          |                     Y d }~nd }~ww xY w	 ||_        |S # t          t          f$ r,}|                    t          |                     Y d }~nd }~ww xY w|r%t	          dd                    |          z             |S )NziNo match found when setting the actual_instance in Timestamp with anyOf schemas: datetime, str. Details: , )	r   model_constructr   r
   r$   appendr   r   join)clsvinstanceerror_messageses        r+   #actual_instance_must_validate_anyofz-Timestamp.actual_instance_must_validate_anyof;   s8   9H,,..	*01H-H, 	* 	* 	*!!#a&&))))))))	*	*01H-H, 	* 	* 	*!!#a&&))))))))	* 	  I  LP  LU  LU  Vd  Le  Le  e  f  f  fHs,   * A'"A""A'+A4 4B1"B,,B1objDict[str, Any]r   c                P    |                      t          j        |                    S )N)	from_jsonjsondumps)r2   r8   s     r+   	from_dictzTimestamp.from_dictT   s    }}TZ__---r,   json_strc                (   |                                  }||S g }	 t          j        |          |_        |j        |_        |S # t
          t          f$ r,}|                    t          |                     Y d}~nd}~ww xY w	 t          j        |          |_	        |j	        |_        |S # t
          t          f$ r,}|                    t          |                     Y d}~nd}~ww xY w|r%t          dd
                    |          z             |S )z1Returns the object represented by the json stringNzmNo match found when deserializing the JSON string into Timestamp with anyOf schemas: datetime, str. Details: r.   )r/   r<   loadsr   r   r
   r$   r0   r   r   r1   )r2   r?   r4   r5   r6   s        r+   r;   zTimestamp.from_jsonX   sg    &&((O	*04
80D0DH-'/'HH$O, 	* 	* 	*!!#a&&))))))))	*	*04
80D0DH-'/'HH$O, 	* 	* 	*!!#a&&))))))))	*  	  M  PT  PY  PY  Zh  Pi  Pi  i  j  j  jOs/   &A B "A;;B &B+ +C(<"C##C(c                    | j         dS t          | j         d          r2t          | j         j                  r| j                                         S t	          j        | j                   S )z6Returns the JSON representation of the actual instanceNnullto_json)r   hasattrcallablerD   r<   r=   r'   s    r+   rD   zTimestamp.to_jsony   sb    '64'33 	4AUA]8^8^ 	4'//111:d2333r,   .Optional[Union[Dict[str, Any], datetime, str]]c                    | j         dS t          | j         d          r2t          | j         j                  r| j                                         S | j         S )z6Returns the dict representation of the actual instanceNto_dict)r   rE   rF   rJ   rG   s    r+   rJ   zTimestamp.to_dict   sX    '44'33 	(AUA]8^8^ 	('//111''r,   c                N    t          j        |                                           S )z8Returns the string representation of the actual instance)pprintpformat
model_dumprG   s    r+   to_strzTimestamp.to_str   s    ~doo//000r,   )r   r    )r8   r9   r   r   )r?   r   r   r   )r   r   )r   rH   )__name__
__module____qualname____doc__r   __annotations__r   r   r   r   model_configr&   r   r7   classmethodr>   r;   rD   rJ   rO   __classcell__)r*   s   @r+   r   r      sj         
 487777488888 $:>>>>>>#####!+U4N4444  $ " L
' ' ' ' ' ' _&''  ('0 . . . [.    [@4 4 4 4( ( ( (1 1 1 1 1 1 1 1r,   r   )rS   
__future__r   inspectr   r<   rL   rer   pydanticr   r   r   r	   r
   r   typingr   r   r   r   r   r   r   typing_extensionsr   r   TIMESTAMP_ANY_OF_SCHEMASr   r   r,   r+   <module>r_      sM  	 	 # " " " " " " " " " " "   				       ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^       G G G G G G G G G G G G G G G G G G + + + + + + + +      &. r1 r1 r1 r1 r1	 r1 r1 r1 r1 r1r,   