3 fY%@s8dZddlmZddlmZddlZGdddeZdS)z Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git )pformat) iteritemsNc@seZdZdZd'ddZeddZejddZedd Zejd d Zed d Z e jd d Z eddZ e jddZ eddZ e jddZ eddZ e jddZ eddZ e jddZ eddZejddZddZdd Zd!d"Zd#d$Zd%d&ZdS)(V1Probezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Nc Csdddddddddd|_dddd d d d d d|_||_||_||_||_||_||_||_||_ dS)a= V1Probe - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. V1ExecActionintV1HTTPGetActionV1TCPSocketAction)_execfailure_thresholdhttp_getinitial_delay_secondsperiod_secondssuccess_threshold tcp_sockettimeout_secondsexecZfailureThresholdhttpGetZinitialDelaySecondsZ periodSecondsZsuccessThreshold tcpSocketZtimeoutSecondsN) swagger_types attribute_map_V1Probe__exec_failure_threshold _http_get_initial_delay_seconds_period_seconds_success_threshold _tcp_socket_timeout_seconds) selfr r r r r rrrrR/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_probe.py__init__s0   zV1Probe.__init__cCs|jS)z Gets the _exec of this V1Probe. One and only one of the following should be specified. Exec specifies the action to take. :return: The _exec of this V1Probe. :rtype: V1ExecAction )r)rrrr r @s z V1Probe._execcCs ||_dS)z Sets the _exec of this V1Probe. One and only one of the following should be specified. Exec specifies the action to take. :param _exec: The _exec of this V1Probe. :type: V1ExecAction N)r)rr rrr r Ks cCs|jS)a Gets the failure_threshold of this V1Probe. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. :return: The failure_threshold of this V1Probe. :rtype: int )r)rrrr r Ws zV1Probe.failure_thresholdcCs ||_dS)a  Sets the failure_threshold of this V1Probe. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. :param failure_threshold: The failure_threshold of this V1Probe. :type: int N)r)rr rrr r bs cCs|jS)z Gets the http_get of this V1Probe. HTTPGet specifies the http request to perform. :return: The http_get of this V1Probe. :rtype: V1HTTPGetAction )r)rrrr r ns zV1Probe.http_getcCs ||_dS)z Sets the http_get of this V1Probe. HTTPGet specifies the http request to perform. :param http_get: The http_get of this V1Probe. :type: V1HTTPGetAction N)r)rr rrr r ys cCs|jS)aO Gets the initial_delay_seconds of this V1Probe. Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :return: The initial_delay_seconds of this V1Probe. :rtype: int )r)rrrr r s zV1Probe.initial_delay_secondscCs ||_dS)ac Sets the initial_delay_seconds of this V1Probe. Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. :type: int N)r)rr rrr r s cCs|jS)z Gets the period_seconds of this V1Probe. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. :return: The period_seconds of this V1Probe. :rtype: int )r)rrrr r s zV1Probe.period_secondscCs ||_dS)z Sets the period_seconds of this V1Probe. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. :param period_seconds: The period_seconds of this V1Probe. :type: int N)r)rr rrr r s cCs|jS)a* Gets the success_threshold of this V1Probe. Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. :return: The success_threshold of this V1Probe. :rtype: int )r)rrrr rs zV1Probe.success_thresholdcCs ||_dS)a: Sets the success_threshold of this V1Probe. Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. :param success_threshold: The success_threshold of this V1Probe. :type: int N)r)rrrrr rs cCs|jS)z Gets the tcp_socket of this V1Probe. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :return: The tcp_socket of this V1Probe. :rtype: V1TCPSocketAction )r)rrrr rs zV1Probe.tcp_socketcCs ||_dS)z Sets the tcp_socket of this V1Probe. TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported :param tcp_socket: The tcp_socket of this V1Probe. :type: V1TCPSocketAction N)r)rrrrr rs cCs|jS)aH Gets the timeout_seconds of this V1Probe. Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :return: The timeout_seconds of this V1Probe. :rtype: int )r)rrrr rs zV1Probe.timeout_secondscCs ||_dS)aV Sets the timeout_seconds of this V1Probe. Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes :param timeout_seconds: The timeout_seconds of this V1Probe. :type: int N)r)rrrrr rs cCsi}xt|jD]z\}}t||}t|trDttdd|||<qt|dr\|j||<qt|trttdd|j ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dr|jS|S)Nto_dict)hasattrr")xrrr sz!V1Probe.to_dict..r"cSs&t|ddr"|d|djfS|S)Nr"r)r#r")itemrrr r% s) rrgetattr isinstancelistmapr#r"dictitems)rresultattr_valuerrr r"s     zV1Probe.to_dictcCs t|jS)z@ Returns the string representation of the model )rr")rrrr to_strszV1Probe.to_strcCs|jS)z* For `print` and `pprint` )r2)rrrr __repr__szV1Probe.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)r)r__dict__)rotherrrr __eq__s zV1Probe.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr5rrr __ne__'szV1Probe.__ne__)NNNNNNNN)__name__ __module__ __qualname____doc__r!propertyr setterr r r r rrrr"r2r3r6r7rrrr rs. (          r)r;pprintrsixrreobjectrrrrr  s