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@sveZdZdZdddZeddZejddZedd Zejd d Zd d Z d dZ ddZ ddZ ddZ dS)V1DownwardAPIVolumeSourcezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs(ddd|_ddd|_||_||_dS)aO V1DownwardAPIVolumeSource - 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. intzlist[V1DownwardAPIVolumeFile]) default_modeitems defaultModerN) swagger_types attribute_map _default_mode_items)selfrrrg/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_downward_api_volume_source.py__init__s   z"V1DownwardAPIVolumeSource.__init__cCs|jS)a Gets the default_mode of this V1DownwardAPIVolumeSource. Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. :return: The default_mode of this V1DownwardAPIVolumeSource. :rtype: int )r )r rrrr.s z&V1DownwardAPIVolumeSource.default_modecCs ||_dS)a Sets the default_mode of this V1DownwardAPIVolumeSource. Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. :param default_mode: The default_mode of this V1DownwardAPIVolumeSource. :type: int N)r )r rrrrr9s cCs|jS)z Gets the items of this V1DownwardAPIVolumeSource. Items is a list of downward API volume file :return: The items of this V1DownwardAPIVolumeSource. :rtype: list[V1DownwardAPIVolumeFile] )r )r rrrrEs zV1DownwardAPIVolumeSource.itemscCs ||_dS)z Sets the items of this V1DownwardAPIVolumeSource. Items is a list of downward API volume file :param items: The items of this V1DownwardAPIVolumeSource. :type: list[V1DownwardAPIVolumeFile] N)r )r rrrrrPs 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)xrrrfsz3V1DownwardAPIVolumeSource.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrms) rr getattr isinstancelistmaprrdictr)r resultattr_valuerrrr\s     z!V1DownwardAPIVolumeSource.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)r rrrto_strvsz V1DownwardAPIVolumeSource.to_strcCs|jS)z* For `print` and `pprint` )r )r rrr__repr__|sz"V1DownwardAPIVolumeSource.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)r otherrrr__eq__s z V1DownwardAPIVolumeSource.__eq__cCs ||k S)z< Returns true if both objects are not equal r)r r#rrr__ne__sz V1DownwardAPIVolumeSource.__ne__)NN)__name__ __module__ __qualname____doc__rpropertyrsetterrrr r!r$r%rrrrrs     r)r)pprintrsixrreobjectrrrrr s