
    @                     >    d Z ddlmZ ddlmZ ddlZ G d de      Zy)z
    Kubernetes

    No description provided (generated by Swagger Codegen
    https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: v1.14.4

    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc                      e Zd ZdZ	 i ddddddddd	dd
dddddddddddddddddddddddZi ddddddddd	dd
ddddddddddddddddd ddddddZ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dJd"Zed#        Zej                  d$        Zed%        Z
e
j                  d&        Z
ed'        Zej                  d(        Zed)        Zej                  d*        Zed+        Zej                  d,        Zed-        Zej                  d.        Zed/        Zej                  d0        Zed1        Zej                  d2        Zed3        Zej                  d4        Zed5        Zej                  d6        Zed7        Zej                  d8        Zed9        Zej                  d:        Zed;        Zej                  d<        Zed=        Zej                  d>        Zed?        Zej                  d@        ZedA        Zej                  dB        ZedC        Zej                  dD        ZdE ZdF ZdG ZdH ZdI Zy!)KV1Eventzw
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    actionstrapi_versioncountint
event_timedatetimefirst_timestampinvolved_objectV1ObjectReferencekindlast_timestampmessagemetadataV1ObjectMetareasonrelatedreporting_componentreporting_instanceseriesV1EventSeriessourceV1EventSourcetype
apiVersion	eventTimefirstTimestampinvolvedObjectlastTimestampreportingComponentreportingInstanceNc                 ,   d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        ||| _        || _        ||| _        ||| _        |	|	| _        |
| _        ||| _        ||| _        ||| _        ||| _        ||| _         ||| _!        ||| _"        yy)z6
        V1Event - a model defined in Swagger
        N)#_action_api_version_count_event_time_first_timestamp_involved_object_kind_last_timestamp_message	_metadata_reason_related_reporting_component_reporting_instance_series_source_typediscriminatorr   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )selfr   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s                     4lib/third_party/kubernetes/client/models/v1_event.py__init__zV1Event.__init__F   sf   , DLDDKD D DDJDDMDNDLDM $D#DDLDLDJDdk$ddj"do",d*Ddi!*ddlDMdkdl&!4d% 2ddkdkdi     c                     | j                   S )z
        Gets the action of this V1Event.
        What action was taken/failed regarding to the Regarding object.

        :return: The action of this V1Event.
        :rtype: str
        r'   r9   s    r:   r   zV1Event.action   s     <<r<   c                     || _         y)z
        Sets the action of this V1Event.
        What action was taken/failed regarding to the Regarding object.

        :param action: The action of this V1Event.
        :type: str
        Nr>   )r9   r   s     r:   r   zV1Event.action   s     DLr<   c                     | j                   S )a  
        Gets the api_version of this V1Event.
        APIVersion defines the versioned schema of this representation of an
        object. Servers should convert recognized schemas to the latest internal
        value, and may reject unrecognized values. More info:
        https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

        :return: The api_version of this V1Event.
        :rtype: str
        r(   r?   s    r:   r	   zV1Event.api_version   s     r<   c                     || _         y)a  
        Sets the api_version of this V1Event.
        APIVersion defines the versioned schema of this representation of an
        object. Servers should convert recognized schemas to the latest internal
        value, and may reject unrecognized values. More info:
        https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

        :param api_version: The api_version of this V1Event.
        :type: str
        NrB   )r9   r	   s     r:   r	   zV1Event.api_version   s     $Dr<   c                     | j                   S )z
        Gets the count of this V1Event.
        The number of times this event has occurred.

        :return: The count of this V1Event.
        :rtype: int
        r)   r?   s    r:   r
   zV1Event.count   s     ;;r<   c                     || _         y)z
        Sets the count of this V1Event.
        The number of times this event has occurred.

        :param count: The count of this V1Event.
        :type: int
        NrE   )r9   r
   s     r:   r
   zV1Event.count   s     DKr<   c                     | j                   S )z
        Gets the event_time of this V1Event.
        Time when this Event was first observed.

        :return: The event_time of this V1Event.
        :rtype: datetime
        r*   r?   s    r:   r   zV1Event.event_time   s     r<   c                     || _         y)z
        Sets the event_time of this V1Event.
        Time when this Event was first observed.

        :param event_time: The event_time of this V1Event.
        :type: datetime
        NrH   )r9   r   s     r:   r   zV1Event.event_time   s     "Dr<   c                     | j                   S )z
        Gets the first_timestamp of this V1Event.
        The time at which the event was first recorded. (Time of server receipt
        is in TypeMeta.)

        :return: The first_timestamp of this V1Event.
        :rtype: datetime
        r+   r?   s    r:   r   zV1Event.first_timestamp   s        r<   c                     || _         y)a  
        Sets the first_timestamp of this V1Event.
        The time at which the event was first recorded. (Time of server receipt
        is in TypeMeta.)

        :param first_timestamp: The first_timestamp of this V1Event.
        :type: datetime
        NrK   )r9   r   s     r:   r   zV1Event.first_timestamp   s     ,Dr<   c                     | j                   S )z
        Gets the involved_object of this V1Event.
        The object that this event is about.

        :return: The involved_object of this V1Event.
        :rtype: V1ObjectReference
        )r,   r?   s    r:   r   zV1Event.involved_object  s        r<   c                 ,    |t        d      || _        y)z
        Sets the involved_object of this V1Event.
        The object that this event is about.

        :param involved_object: The involved_object of this V1Event.
        :type: V1ObjectReference
        Nz7Invalid value for `involved_object`, must not be `None`)
ValueErrorr,   )r9   r   s     r:   r   zV1Event.involved_object  s&     
CE E ,Dr<   c                     | j                   S )a  
        Gets the kind of this V1Event.
        Kind is a string value representing the REST resource this object
        represents. Servers may infer this from the endpoint the client submits
        requests to. Cannot be updated. In CamelCase. More info:
        https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

        :return: The kind of this V1Event.
        :rtype: str
        r-   r?   s    r:   r   zV1Event.kind%  s     ::r<   c                     || _         y)a  
        Sets the kind of this V1Event.
        Kind is a string value representing the REST resource this object
        represents. Servers may infer this from the endpoint the client submits
        requests to. Cannot be updated. In CamelCase. More info:
        https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

        :param kind: The kind of this V1Event.
        :type: str
        NrQ   )r9   r   s     r:   r   zV1Event.kind3  s     DJr<   c                     | j                   S )z
        Gets the last_timestamp of this V1Event.
        The time at which the most recent occurrence of this event was recorded.

        :return: The last_timestamp of this V1Event.
        :rtype: datetime
        r.   r?   s    r:   r   zV1Event.last_timestampB  s     r<   c                     || _         y)z
        Sets the last_timestamp of this V1Event.
        The time at which the most recent occurrence of this event was recorded.

        :param last_timestamp: The last_timestamp of this V1Event.
        :type: datetime
        NrT   )r9   r   s     r:   r   zV1Event.last_timestampM  s     *Dr<   c                     | j                   S )z
        Gets the message of this V1Event.
        A human-readable description of the status of this operation.

        :return: The message of this V1Event.
        :rtype: str
        r/   r?   s    r:   r   zV1Event.messageY       ==r<   c                     || _         y)z
        Sets the message of this V1Event.
        A human-readable description of the status of this operation.

        :param message: The message of this V1Event.
        :type: str
        NrW   )r9   r   s     r:   r   zV1Event.messaged       DMr<   c                     | j                   S )a  
        Gets the metadata of this V1Event.
        Standard object's metadata. More info:
        https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

        :return: The metadata of this V1Event.
        :rtype: V1ObjectMeta
        )r0   r?   s    r:   r   zV1Event.metadatap  s     >>r<   c                 ,    |t        d      || _        y)a  
        Sets the metadata of this V1Event.
        Standard object's metadata. More info:
        https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

        :param metadata: The metadata of this V1Event.
        :type: V1ObjectMeta
        Nz0Invalid value for `metadata`, must not be `None`)rO   r0   )r9   r   s     r:   r   zV1Event.metadata|  s     IJJDNr<   c                     | j                   S )a  
        Gets the reason of this V1Event.
        This should be a short, machine understandable string that gives the
        reason for the transition into the object's current status.

        :return: The reason of this V1Event.
        :rtype: str
        r1   r?   s    r:   r   zV1Event.reason       <<r<   c                     || _         y)a
  
        Sets the reason of this V1Event.
        This should be a short, machine understandable string that gives the
        reason for the transition into the object's current status.

        :param reason: The reason of this V1Event.
        :type: str
        Nr^   )r9   r   s     r:   r   zV1Event.reason       DLr<   c                     | j                   S )z
        Gets the related of this V1Event.
        Optional secondary object for more complex actions.

        :return: The related of this V1Event.
        :rtype: V1ObjectReference
        r2   r?   s    r:   r   zV1Event.related  rX   r<   c                     || _         y)z
        Sets the related of this V1Event.
        Optional secondary object for more complex actions.

        :param related: The related of this V1Event.
        :type: V1ObjectReference
        Nrc   )r9   r   s     r:   r   zV1Event.related  rZ   r<   c                     | j                   S )z
        Gets the reporting_component of this V1Event.
        Name of the controller that emitted this Event, e.g.
        `kubernetes.io/kubelet`.

        :return: The reporting_component of this V1Event.
        :rtype: str
        r3   r?   s    r:   r   zV1Event.reporting_component  s     $$$r<   c                     || _         y)z
        Sets the reporting_component of this V1Event.
        Name of the controller that emitted this Event, e.g.
        `kubernetes.io/kubelet`.

        :param reporting_component: The reporting_component of this V1Event.
        :type: str
        Nrf   )r9   r   s     r:   r   zV1Event.reporting_component  s     !4Dr<   c                     | j                   S )z
        Gets the reporting_instance of this V1Event.
        ID of the controller instance, e.g. `kubelet-xyzf`.

        :return: The reporting_instance of this V1Event.
        :rtype: str
        r4   r?   s    r:   r   zV1Event.reporting_instance  s     ###r<   c                     || _         y)z
        Sets the reporting_instance of this V1Event.
        ID of the controller instance, e.g. `kubelet-xyzf`.

        :param reporting_instance: The reporting_instance of this V1Event.
        :type: str
        Nri   )r9   r   s     r:   r   zV1Event.reporting_instance  s      2Dr<   c                     | j                   S )z
        Gets the series of this V1Event.
        Data about the Event series this event represents or nil if it's a
        singleton Event.

        :return: The series of this V1Event.
        :rtype: V1EventSeries
        r5   r?   s    r:   r   zV1Event.series  r_   r<   c                     || _         y)z
        Sets the series of this V1Event.
        Data about the Event series this event represents or nil if it's a
        singleton Event.

        :param series: The series of this V1Event.
        :type: V1EventSeries
        Nrl   )r9   r   s     r:   r   zV1Event.series  ra   r<   c                     | j                   S )z
        Gets the source of this V1Event.
        The component reporting this event. Should be a short machine
        understandable string.

        :return: The source of this V1Event.
        :rtype: V1EventSource
        r6   r?   s    r:   r   zV1Event.source  r_   r<   c                     || _         y)z
        Sets the source of this V1Event.
        The component reporting this event. Should be a short machine
        understandable string.

        :param source: The source of this V1Event.
        :type: V1EventSource
        Nro   )r9   r   s     r:   r   zV1Event.source  ra   r<   c                     | j                   S )z
        Gets the type of this V1Event.
        Type of this event (Normal, Warning), new types could be added in the
        future

        :return: The type of this V1Event.
        :rtype: str
        r7   r?   s    r:   r   zV1Event.type  s     ::r<   c                     || _         y)z
        Sets the type of this V1Event.
        Type of this event (Normal, Warning), new types could be added in the
        future

        :param type: The type of this V1Event.
        :type: str
        Nrr   )r9   r   s     r:   r   zV1Event.type)  s     DJr<   c                 j   i }t        | j                        D ]  \  }}t        | |      }t        |t              rt	        t        d |            ||<   <t        |d      r|j                         ||<   \t        |t              r(t        t        d |j                                     ||<   |||<    |S )z8
        Returns the model properties as a dict
        c                 >    t        | d      r| j                         S | S )Nto_dicthasattrrv   )xs    r:   <lambda>z!V1Event.to_dict.<locals>.<lambda>@  s    I)>!))+EAEr<   rv   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rv   r   rw   )items    r:   rz   z!V1Event.to_dict.<locals>.<lambda>F  s6    47I. #1gtAw'89 9489r<   )
r   swagger_typesgetattr
isinstancelistmaprx   rv   dictitems)r9   resultattr_values        r:   rv   zV1Event.to_dict6  s     FT//0adD!e	E4	 EuMOt5)$}}teT"9:?++-IJt
 t 1 Mr<   c                 4    t        | j                               S )z@
        Returns the string representation of the model
        )r   rv   r?   s    r:   to_strzV1Event.to_strM  s     4<<>""r<   c                 "    | j                         S )z*
        For `print` and `pprint`
        )r   r?   s    r:   __repr__zV1Event.__repr__S  s     ;;=r<   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r   r   __dict__r9   others     r:   __eq__zV1Event.__eq__Y  s$     eW%==ENN**r<   c                     | |k(   S )z<
        Returns true if both objects are not equal
         r   s     r:   __ne__zV1Event.__ne__b  s     u}r<   )NNNNNNNNNNNNNNNNN)__name__
__module____qualname____doc__r~   attribute_mapr;   propertyr   setterr	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rv   r   r   r   r   r   r<   r:   r   r      s   U u J	
  , e 
  .  $ U E   !" e#-(\ w K	
 ) ) f   *   1 /   !" f#-* ##"#'"&#HT   
==	 	   $ $   	<<	 	   	" 	" 	! 	! 
, 
, ! ! , ,   ;;      	* 	*   >>	 	 	 	 ??  	 	 
==
 
   >>	 	 	% 	% 
4 
4 $ $ 	2 	2 	 	 
==
 
 	 	 
==
 
 	 	 ;;
 
.#+r<   r   )r   pprintr   sixr   reobjectr   r   r<   r:   <module>r      s#   	   	T	f T	r<   