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 ddZ ddZ ddZ ddZ ddZdS)V1ConfigMapProjectionzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS) aK V1ConfigMapProjection - 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. zlist[V1KeyToPath]strbool)itemsnameoptionalrrr N) swagger_types attribute_map_items_name _optional)selfrrr rb/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_config_map_projection.py__init__s   zV1ConfigMapProjection.__init__cCs|jS)a Gets the items of this V1ConfigMapProjection. 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 V1ConfigMapProjection. :rtype: list[V1KeyToPath] )r )rrrrr1s zV1ConfigMapProjection.itemscCs ||_dS)a Sets the items of this V1ConfigMapProjection. 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 V1ConfigMapProjection. :type: list[V1KeyToPath] N)r )rrrrrr<s cCs|jS)a Gets the name of this V1ConfigMapProjection. Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :return: The name of this V1ConfigMapProjection. :rtype: str )r )rrrrrHs zV1ConfigMapProjection.namecCs ||_dS)a Sets the name of this V1ConfigMapProjection. Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names :param name: The name of this V1ConfigMapProjection. :type: str N)r )rrrrrrSs cCs|jS)z Gets the optional of this V1ConfigMapProjection. Specify whether the ConfigMap or it's keys must be defined :return: The optional of this V1ConfigMapProjection. :rtype: bool )r)rrrrr _s zV1ConfigMapProjection.optionalcCs ||_dS)z Sets the optional of this V1ConfigMapProjection. Specify whether the ConfigMap or it's keys must be defined :param optional: The optional of this V1ConfigMapProjection. :type: bool N)r)rr rrrr js 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)xrrrsz/V1ConfigMapProjection.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictr)rresultattr_valuerrrrvs     zV1ConfigMapProjection.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1ConfigMapProjection.to_strcCs|jS)z* For `print` and `pprint` )r")rrrr__repr__szV1ConfigMapProjection.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s zV1ConfigMapProjection.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr%rrr__ne__szV1ConfigMapProjection.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrr rr"r#r&r'rrrrrs      r)r+pprintrsixrreobjectrrrrr s