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@seZdZdZdddZeddZejddZedd Zejd d Zed d Z e jd d Z eddZ e jddZ ddZ ddZ ddZ ddZddZdS)V1ConfigMapVolumeSourcezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs<ddddd|_dddd d|_||_||_||_||_d S) aM V1ConfigMapVolumeSource - 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[V1KeyToPath]strbool) default_modeitemsnameoptionalZ defaultModer r r N) swagger_types attribute_map _default_mode_items_name _optional)selfrr r r re/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_config_map_volume_source.py__init__s   z V1ConfigMapVolumeSource.__init__cCs|jS)a Gets the default_mode of this V1ConfigMapVolumeSource. 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 V1ConfigMapVolumeSource. :rtype: int )r)rrrrr4s z$V1ConfigMapVolumeSource.default_modecCs ||_dS)a Sets the default_mode of this V1ConfigMapVolumeSource. 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 V1ConfigMapVolumeSource. :type: int N)r)rrrrrr?s cCs|jS)a Gets the items of this V1ConfigMapVolumeSource. If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. :return: The items of this V1ConfigMapVolumeSource. :rtype: list[V1KeyToPath] )r)rrrrr Ks zV1ConfigMapVolumeSource.itemscCs ||_dS)a Sets the items of this V1ConfigMapVolumeSource. If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. :param items: The items of this V1ConfigMapVolumeSource. :type: list[V1KeyToPath] N)r)rr rrrr Vs cCs|jS)a Gets the name of this V1ConfigMapVolumeSource. Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :return: The name of this V1ConfigMapVolumeSource. :rtype: str )r)rrrrr bs zV1ConfigMapVolumeSource.namecCs ||_dS)a  Sets the name of this V1ConfigMapVolumeSource. Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :param name: The name of this V1ConfigMapVolumeSource. :type: str N)r)rr rrrr ms cCs|jS)z Gets the optional of this V1ConfigMapVolumeSource. Specify whether the ConfigMap or it's keys must be defined :return: The optional of this V1ConfigMapVolumeSource. :rtype: bool )r)rrrrr ys z V1ConfigMapVolumeSource.optionalcCs ||_dS)z Sets the optional of this V1ConfigMapVolumeSource. Specify whether the ConfigMap or it's keys must be defined :param optional: The optional of this V1ConfigMapVolumeSource. :type: bool N)r)rr rrrr s 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)xrrrsz1V1ConfigMapVolumeSource.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictr )rresultattr_valuerrrrs     zV1ConfigMapVolumeSource.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1ConfigMapVolumeSource.to_strcCs|jS)z* For `print` and `pprint` )r%)rrrr__repr__sz V1ConfigMapVolumeSource.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s zV1ConfigMapVolumeSource.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr(rrr__ne__szV1ConfigMapVolumeSource.__ne__)NNNN)__name__ __module__ __qualname____doc__rpropertyrsetterr r r rr%r&r)r*rrrrrs       r)r.pprintrsixrreobjectrrrrr s