Ë
    eQêjR,  ã                  óæ   — d 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mZmZmZmZmZ ddlmZ ddlmZmZ dd	lmZ dd
lmZ dZdd„Z dd„Z!dd„Z"dd„Z# G d„ de«      Z$y)a   
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

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

    Do not edit the class manually.
é    )ÚannotationsN)ÚMapping)ÚAliasChoicesÚ	BaseModelÚ
ConfigDictÚFieldÚ	StrictIntÚ	StrictStr)ÚAnyÚClassVarÚDictÚListÚOptionalÚcast)ÚV2HPAScalingPolicy)r   ÚSet)ÚSelf)Úto_jsonable_pythonÚ_openapi_generator_to_dictc                óâ   — t        | dd «      }t        t        | «      dd «      }t        |«      rt        |dd «      |ury t        |t        d «      }t        |«      rt        |t        d «      |ury |S )NÚto_dictÚ__func__)ÚgetattrÚtypeÚcallableÚ_OPENAPI_GENERATOR_TO_DICT)Úvaluer   Útype_to_dictÚopenapi_to_dicts       úr/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/kubernetes/client/models/v2_hpa_scaling_rules.pyÚ_get_openapi_to_dictr!       s‚   € ô �e˜Y¨Ó-€GÜœ4 ›;¨	°4Ó8€Lä�WÔÜ�7˜J¨Ó-°\ÑAàäØÔ0°$ó€Oô �_Ô%ÜØÜ&Øó
ð ñ	ð ØÐó    c                ó‚   — t        | dd «      }t        | «      �t        |«      r	 ||¬«      S t        |«      r |«       S | S )Nr   )Ú	serialize)r   r!   r   )r   r$   r   s      r    Ú_to_legacy_itemr%   ;   sB   € Ü�e˜Y¨Ó-€GÜ˜EÓ"Ð.´8¸GÔ3DÙ Ô+Ð+Ü�ÔÙ‹yÐØ€Lr"   c           	     ó   — t        | t        «      r| D �cg c]  }t        ||«      ‘Œ c}S t        | t        «      r.| j	                  «       D ��ci c]  \  }}|t        ||«      “Œ c}}S t        | |«      S c c}w c c}}w )N)Ú
isinstanceÚlistr%   ÚdictÚitems)r   r$   ÚitemÚkeys       r    Ú_to_legacy_valuer-   D   s}   € ô �%œÔØ=BÖC°T”  iÕ0ÒCÐCÜ�%œÔð #Ÿ[™[›]÷
á��Tð ”  yÓ1Ñ1ó
ð 	
ô ˜5 )Ó,Ð,ùò Dùó
s   •A5ÁA:c                óP  — t        | t        «      r| D �cg c]  }t        |«      ‘Œ c}S t        | t        «      r-| j	                  «       D ��ci c]  \  }}|t        |«      “Œ c}}S t        | «      }|� || «      S t        | dd «      }t        |«      r |«       S | S c c}w c c}}w )Nr   )r'   r(   Ú_to_openapi_valuer)   r*   r!   r   r   )r   r+   r,   Úto_openapi_dictr   s        r    r/   r/   Q   s™   € Ü�%œÔØ49Ö:¨DÔ! $Õ'Ò:Ð:Ü�%œÔØ>C¿k¹k»m×L±°°d�Ô& tÓ,Ñ,ÓLÐLä*¨5Ó1€OØÐ"Ù˜uÓ%Ð%ä�e˜Y¨Ó-€GÜ�ÔÙ‹yÐØ€Lùò ;ùãLs   •BÁB"c                  ó²  — e Zd ZU dZ edd¬«      Zded<    ed edd«      dd	¬
«      Zded<    ed edd«      dd¬
«      Z	ded<    edd¬«      Z
ded<   dddddœZded<   dddddœZded<   g d¢Zded<   e	 d*	 	 	 	 	 d+d„«       Z eddddd¬ «      Zd,d!„Zd,d"„Zd-d#„Zd-d$„Zd,d%„Zed.d&„«       Zd/d0d'„Zd1d(„Z eeee«        eeee«       [ed2d)„«       Zy)3ÚV2HPAScalingRulesaQ  
    HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.  Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.  The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations.

    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    Na  policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.)ÚdefaultÚdescriptionz"Optional[List[V2HPAScalingPolicy]]ÚpoliciesÚselectPolicyÚselect_policyzgselectPolicy is used to specify which policy should be used. If not set, the default value Max is used.)r3   Úvalidation_aliasÚserialization_aliasr4   zOptional[StrictStr]ÚstabilizationWindowSecondsÚstabilization_window_secondsa—  stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).zOptional[StrictInt]a  tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).  For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.Ú	tolerancezList[V2HPAScalingPolicy]ÚstrÚint)r5   r7   r;   r<   zClassVar[Dict[str, str]]Úopenapi_typesÚattribute_map©r5   r6   r:   r<   zClassVar[List[str]]Ú_V2HPAScalingRules__propertiesTc                óÈ   — t        |t        «      s|S t        |«      }d|vrd|v r|d   |d<   |j                  dd «       d|vrd|v r|d   |d<   |j                  dd «       |S )Nr6   r7   r:   r;   )r'   Ú_Mappingr)   Úpop)ÚclsÚobjÚremove_hidden_storage_namess      r    Ú__preprocess_input_namesz*V2HPAScalingRules.__preprocess_input_names~   s~   € ô ˜#œxÔ(ØˆJÜ�3‹iˆØ Ñ$¨¸CÑ)?Ø"% oÑ"6ˆC�ÑØ�‰� Ô&Ø'¨sÑ2Ð7UÐY\Ñ7\Ø03Ð4RÑ0SˆCÐ,Ñ-Ø�‰Ð.°Ô5Øˆ
r"   Úforbid© )Úvalidate_by_nameÚvalidate_by_aliasÚvalidate_assignmentÚextraÚprotected_namespacesc                óH   — t        j                  | j                  «       «      S )z.Returns the string representation of the model)ÚpprintÚpformatr   ©Úselfs    r    Úto_strzV2HPAScalingRules.to_str˜   s   € ä�~‰~˜dŸl™l›nÓ-Ð-r"   c                ó"   — | j                  «       S )zFor print and pprint)rV   rT   s    r    Ú__repr__zV2HPAScalingRules.__repr__œ   s   € à�{‰{‹}Ðr"   c                óf   — t        |t        «      sy| j                  «       |j                  «       k(  S )z&Returns true if both objects are equalF)r'   r2   r   ©rU   Úothers     r    Ú__eq__zV2HPAScalingRules.__eq__    s'   € ä˜%Ô!2Ô3Øà�|‰|‹~ §¡£Ñ0Ð0r"   c                ó0   — t        |t        «      sy| |k(   S )z*Returns true if both objects are not equalT)r'   r2   rZ   s     r    Ú__ne__zV2HPAScalingRules.__ne__§   s   € ä˜%Ô!2Ô3Øà˜E‘MÐ"Ð"r"   c                ó¼   — t        | «      }|�$t        j                  t         || «      «      «      S t        j                  t        | j	                  «       «      «      S )z8Returns the JSON representation of the model using alias)r!   ÚjsonÚdumpsr   r   )rU   r0   s     r    Úto_jsonzV2HPAScalingRules.to_json¯   sG   € ä.¨tÓ4ˆØÐ&Ü—:‘:Ô0±ÀÓ1FÓGÓHÐHÜ�z‰zÔ,¨T¯\©\«^Ó<Ó=Ð=r"   c                óJ   — | j                  t        j                  |«      «      S )z:Create an instance of V2HPAScalingRules from a JSON string)Ú	from_dictr`   Úloads)rF   Újson_strs     r    Ú	from_jsonzV2HPAScalingRules.from_json¶   s   € ð �}‰}œTŸZ™Z¨Ó1Ó2Ð2r"   c                óÞ   — |rdndt        t        | dd«      |«      |rdndt        t        | dd«      |«      |rdndt        t        | dd«      |«      |rdndt        t        | dd«      |«      iS )z<Return all declared model fields using public or wire names.r5   Nr6   r7   r:   r;   r<   )r-   r   )rU   r$   s     r    r   zV2HPAScalingRules.to_dict»   s¦   € ñ %‰Z¨*Ô7GÌÐPTÐV`ÐbfÓHgÐirÓ7sÙ(‰^¨oÔ@PÔQXÐY]Ð_nÐptÓQuð  xAó  ABÙ-6Ñ)Ð<ZÔ]mÔnuÐvzð  }[ð  ]aó  obð  dmó  ^nÙ%‰[¨;Ô9IÌ'ÐRVÐXcÐeiÓJjÐluÓ9vð	
ð 	
r"   c                óÈ   — t        g «      }| j                  d|d¬«      }g }| j                  r4| j                  D ]   }|j                  |�t	        |«      nd«       Œ" ||d<   |S )ac  Return the dictionary representation of the model using alias.

        This has the following differences from calling pydantic's
        `self.model_dump(by_alias=True)`:

        * `None` is only added to the output dict for nullable fields that
          were set at model initialization. Other fields with value `None`
          are ignored.
        T)Úby_aliasÚexcludeÚexclude_noneNr5   )ÚsetÚ
model_dumpr5   Úappendr/   )rU   Úexcluded_fieldsÚ_dictÚ_itemsÚ_item_policiess        r    Ú%__openapi_generator_modern_projectionz7V2HPAScalingRules.__openapi_generator_modern_projectionÄ   s}   € ô %(ð )
ó %ˆð —‘ØØ#Øð  ó 
ˆð ˆØ�=Š=Ø"&§-¡-ò i�Ø—‘À>ÐC]Ô/°Ô?ÐcgÕhðià &ˆE�*ÑØˆr"   c                ó¨  — |€yt        |t        «      s| j                  |«      S t        t        t
        t        f   | j                  |d¬«      «      }| j                  |j                  d«      �&|d   D �cg c]  }t        j                  |«      ‘Œ c}nd|j                  d«      |j                  d«      |j                  d«      dœ«      }|S c c}w )	z3Create an instance of V2HPAScalingRules from a dictNT)rH   r5   r6   r:   r<   rA   )r'   r)   Úmodel_validateÚ_castr   r=   r   Ú*_V2HPAScalingRules__preprocess_input_namesÚgetr   rd   )rF   rG   Ú_itemÚ_objs       r    rd   zV2HPAScalingRules.from_dictê   sÔ   € ð ˆ;Øä˜#œtÔ$Ø×%Ñ% cÓ*Ð*äÜ””c�‰NØ×(Ñ(ØØ,0ð )ó ó
ˆð ×!Ñ!Ø^a×^eÑ^eÐfpÓ^qÐ^}È#ÈjÉ/ÖZÀÔ+×5Ñ5°eÕ<ÓZð  DHØŸG™G NÓ3Ø*-¯'©'Ð2NÓ*OØŸ™ Ó-ñ	#
ó ˆð ˆùò [s   Á6C)T)rG   r   rH   ÚboolÚreturnr   )r}   r=   )r[   Úobjectr}   r|   )rf   r=   r}   úOptional[Self])F)r$   r|   r}   úDict[str, Any])r}   r€   )rG   zOptional[Dict[str, Any]]r}   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r5   Ú__annotations__r   r7   r;   r<   r?   r@   rB   Úclassmethodrx   r   Úmodel_configrV   rX   r\   r^   rb   rg   r   Ú7_V2HPAScalingRules__openapi_generator_modern_projectionÚsetattrr   rd   rK   r"   r    r2   r2   a   s·  … ññ 49Àð  Toô  4p€HÐ0ó  pÙ).°tÉlÐ[iÐkzÓN{ð  R`ð  nWô  *X€MÐ&ó  XÙ8=ÀdÑ]ið  kGð  Igó  ^hð  ~Zð  hA
ô  9B
Ð Ð"5ó  B
Ù%*°4ð  FV	ô  &W	€IÐ"ó  W	à.ØØ(-Øñ	/€MÐ+ó ð Ø'Ø(DØ ñ	/€MÐ+ó ò )p€LÐ%Óoàð -1ðàðð &*ðð 
ò	ó ðñ  ØØØ ØØô€Ló.óó1ó#ó>ð ò3ó ð3ô
óñ4 ØØ"Ø-ôñ
 Ø-Ø"Øôð
 	.àòó ñr"   r2   )r   r   r}   r   )r   r   r$   r|   r}   r   )%r„   Ú
__future__r   rR   Úrer`   Úcollections.abcr   rD   Úpydanticr   r   r   r   r	   r
   Útypingr   r   r   r   r   r   rw   Ú.kubernetes.client.models.v2_hpa_scaling_policyr   r   Útyping_extensionsr   Úpydantic_corer   r   r!   r%   r-   r/   r2   rK   r"   r    ú<module>r’      s]   ðñ	õ #Û Û 	Û å /ß U× Uß E× EÝ Mß  Ý "Ý ,ð :Ð óó6ó
-óô `˜	õ `r"   