3 f÷ÔYf-ã@s8dZddlmZddlmZddlZGdd„deƒZdS)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 @s`eZdZdZd0dd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZed d „ƒZ e jd d „ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZejdd„ƒZedd„ƒZejdd„ƒZed d!„ƒZejd"d!„ƒZed#d$„ƒZejd%d$„ƒZd&d'„Zd(d)„Zd*d+„Zd,d-„Zd.d/„ZdS)1ÚV1Eventzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Nc Cs‚ddddddddddddœ |_dd d d d d ddddddœ |_||_||_||_||_||_||_||_||_ | |_ | |_ | |_ dS)a= V1Event - 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. ÚstrÚintÚdatetimeÚV1ObjectReferenceÚ V1ObjectMetaÚ V1EventSource) Ú api_versionÚcountÚfirst_timestampÚinvolved_objectÚkindÚlast_timestampÚmessageÚmetadataÚreasonÚsourceÚtypeÚ apiVersionr ZfirstTimestampZinvolvedObjectrZ lastTimestamprrrrrN) Ú swagger_typesÚ attribute_mapÚ _api_versionÚ_countÚ_first_timestampÚ_involved_objectÚ_kindÚ_last_timestampÚ_messageÚ _metadataÚ_reasonÚ_sourceÚ_type) Úselfr r r rrrrrrrr©r%úR/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_event.pyÚ__init__sB   zV1Event.__init__cCs|jS)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$r%r%r&r Is zV1Event.api_versioncCs ||_dS)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 N)r)r$r r%r%r&r Ts cCs|jS)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$r%r%r&r `s z V1Event.countcCs ||_dS)z« Sets the count of this V1Event. The number of times this event has occurred. :param count: The count of this V1Event. :type: int N)r)r$r r%r%r&r ks cCs|jS)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$r%r%r&r ws zV1Event.first_timestampcCs ||_dS)zú 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 N)r)r$r r%r%r&r ‚s cCs|jS)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$r%r%r&rŽs zV1Event.involved_objectcCs|dkrtdƒ‚||_dS)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)r$rr%r%r&r™s cCs|jS)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$r%r%r&r§s z V1Event.kindcCs ||_dS)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 N)r)r$rr%r%r&r²s cCs|jS)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$r%r%r&r¾s zV1Event.last_timestampcCs ||_dS)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 N)r)r$rr%r%r&rÉs cCs|jS)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$r%r%r&rÕs zV1Event.messagecCs ||_dS)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 N)r)r$rr%r%r&ràs cCs|jS)zü 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 )r )r$r%r%r&rìs zV1Event.metadatacCs|dkrtdƒ‚||_dS)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`)r(r )r$rr%r%r&r÷s cCs|jS)zý 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 )r!)r$r%r%r&rs zV1Event.reasoncCs ||_dS)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 N)r!)r$rr%r%r&rs cCs|jS)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 )r")r$r%r%r&rs zV1Event.sourcecCs ||_dS)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 N)r")r$rr%r%r&r's cCs|jS)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 )r#)r$r%r%r&r3s z V1Event.typecCs ||_dS)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 N)r#)r$rr%r%r&r>s cCs’i}xˆt|jƒD]z\}}t||ƒ}t|tƒrDttdd„|ƒƒ||<qt|dƒr\|jƒ||<qt|tƒr‚ttdd„|j ƒƒƒ||<q|||<qW|S)z8 Returns the model properties as a dict cSst|dƒr|jƒS|S)NÚto_dict)Úhasattrr))Úxr%r%r&ÚTsz!V1Event.to_dict..r)cSs&t|ddƒr"|d|djƒfS|S)Nér)r)r*r))Úitemr%r%r&r,[s) rrÚgetattrÚ isinstanceÚlistÚmapr*r)ÚdictÚitems)r$ÚresultÚattrÚ_Úvaluer%r%r&r)Js     zV1Event.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr))r$r%r%r&Úto_strdszV1Event.to_strcCs|jƒS)z* For `print` and `pprint` )r9)r$r%r%r&Ú__repr__jszV1Event.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)r0rÚ__dict__)r$Úotherr%r%r&Ú__eq__ps zV1Event.__eq__cCs ||k S)z< Returns true if both objects are not equal r%)r$r<r%r%r&Ú__ne__yszV1Event.__ne__) NNNNNNNNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r'Úpropertyr Úsetterr r rrrrrrrrr)r9r:r=r>r%r%r%r&rs: 1             r)rBÚpprintrÚsixrÚreÚobjectrr%r%r%r&Ú s