
    %j_                    &   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	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mZmZmZmZmZmZ dd	lmZmZ dd
lmZ g dZ G d de	          ZddlmZ ddl m!Z! ddl"m#Z# e$                    d           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)	BaseModel
ConfigDictField	StrictStrValidationErrorfield_validator)Optional)TagGroupLeaf)UnionAnyListSetTYPE_CHECKINGr   Dict)LiteralSelf)r   )TagGroupAndOutputr   TagGroupNotOutputTagGroupOrOutputc                      e Zd ZU dZdZded<   dZded<   dZded<   dZd	ed
<   e	rdZ
ded<   ndZ
ded<   h d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 )(Not1z
    Not1
    NzOptional[TagGroupLeaf]anyof_schema_1_validatorzOptional[TagGroupAndOutput]anyof_schema_2_validatorzOptional[TagGroupOrOutput]anyof_schema_3_validatorzOptional[TagGroupNotOutput]anyof_schema_4_validatorzUOptional[Union[TagGroupAndOutput, TagGroupLeaf, TagGroupNotOutput, TagGroupOrOutput]]actual_instancer   >   r   r   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      h/home/rurouni/.hermes/hermes-agent/venv/lib/python3.11/site-packages/hindsight_client_api/models/not1.pyr*   zNot1.__init__5   s     	'4yy1}} !mnnn f !deeeGGT!W55555EGG&&v&&&&&    c                z   t                                           }g }t          |t                    s'|                    dt          |           d           n|S t          |t                    s'|                    dt          |           d           n|S t          |t                    s'|                    dt          |           d           n|S t          |t                    s'|                    dt          |           d           n|S |r%t          dd
                    |          z             |S )NzError! Input type `z` is not `TagGroupLeaf`z` is not `TagGroupAndOutput`z` is not `TagGroupOrOutput`z` is not `TagGroupNotOutput`zNo match found when setting the actual_instance in Not1 with anyOf schemas: TagGroupAndOutput, TagGroupLeaf, TagGroupNotOutput, TagGroupOrOutput. Details: , )r   model_construct
isinstancer   appendtyper   r   r   r(   join)clsvinstanceerror_messagess       r/   #actual_instance_must_validate_anyofz(Not1.actual_instance_must_validate_anyof?   sy   ''))!\** 	!!"XQ"X"X"XYYYYH !.// 	!!"]Q"]"]"]^^^^H !-.. 	!!"\Q"\"\"\]]]]H !.// 	!!"]Q"]"]"]^^^^H 	  {  ~B  ~G  ~G  HV  ~W  ~W  W  X  X  XHr0   objDict[str, Any]r   c                P    |                      t          j        |                    S )N)	from_jsonjsondumps)r8   r=   s     r/   	from_dictzNot1.from_dicta   s    }}TZ__---r0   json_strstrc                `   |                                  }g }	 t          j        |          |_        |S # t          t
          f$ r,}|                    t          |                     Y d}~nd}~ww xY w	 t          j        |          |_        |S # t          t
          f$ r,}|                    t          |                     Y d}~nd}~ww xY w	 t          j        |          |_        |S # t          t
          f$ r,}|                    t          |                     Y d}~nd}~ww xY w	 t          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 stringNzNo match found when deserializing the JSON string into Not1 with anyOf schemas: TagGroupAndOutput, TagGroupLeaf, TagGroupNotOutput, TagGroupOrOutput. Details: r2   )r3   r   r@   r   r	   r(   r5   rE   r   r   r   r7   )r8   rD   r:   r;   es        r/   r@   zNot1.from_jsone   s    &&((	+'3'=h'G'GH$O, 	+ 	+ 	+""3q66********	+	+'8'B8'L'LH$O, 	+ 	+ 	+""3q66********	+	+'7'A('K'KH$O, 	+ 	+ 	+""3q66********	+	+'8'B8'L'LH$O, 	+ 	+ 	+""3q66********	+  	    BF  BK  BK  LZ  B[  B[  [  \  \  \Os]   3 A0"A++A04B C "CCC+ +D(<"D##D(,E F"E??F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callablerJ   rA   rB   r+   s    r/   rJ   zNot1.to_json   sb    '64'33 	4AUA]8^8^ 	4'//111:d2333r0   eOptional[Union[Dict[str, Any], TagGroupAndOutput, TagGroupLeaf, TagGroupNotOutput, TagGroupOrOutput]]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   rK   rL   rP   rM   s    r/   rP   zNot1.to_dict   sX    '44'33 	(AUA]8^8^ 	('//111''r0   c                N    t          j        |                                           S )z8Returns the string representation of the actual instance)pprintpformat
model_dumprM   s    r/   to_strzNot1.to_str   s    ~doo//000r0   )r#   r$   )r=   r>   r#   r   )rD   rE   r#   r   )r#   rE   )r#   rN   )__name__
__module____qualname____doc__r   __annotations__r   r   r   r   r   r   model_configr*   r
   r<   classmethodrC   r@   rJ   rP   rU   __classcell__)r.   s   @r/   r   r      s         
 8<;;;;<@@@@@;?????<@@@@@ $quuuuuu#####oooNoooo  $ " L
' ' ' ' ' ' _&''  ('B . . . [. ! ! ! [!F4 4 4 4( ( ( (1 1 1 1 1 1 1 1r0   r   )r   )r   )r   F)raise_errors)%rY   
__future__r   inspectr   rA   rR   repydanticr   r   r   r   r	   r
   typingr   *hindsight_client_api.models.tag_group_leafr   r   r   r   r   r   r   typing_extensionsr   r   NOT1_ANY_OF_SCHEMASr   0hindsight_client_api.models.tag_group_and_outputr   0hindsight_client_api.models.tag_group_not_outputr   /hindsight_client_api.models.tag_group_or_outputr   model_rebuildr    r0   r/   <module>rk      s  	 	 # " " " " " " " " " " "   				 ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^       C C C C C C G G G G G G G G G G G G G G G G G G + + + + + + + +      ddd B1 B1 B1 B1 B19 B1 B1 B1H O N N N N N N N N N N N L L L L L L     & & & & &r0   