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)V1SecretVolumeSourcezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs<ddddd|_dddd d|_||_||_||_||_d S) aJ V1SecretVolumeSource - 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]boolstr) default_modeitemsoptional secret_name defaultModer r secretNameN) swagger_types attribute_map _default_mode_items _optional _secret_name)selfrr r r ra/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_secret_volume_source.py__init__s   zV1SecretVolumeSource.__init__cCs|jS)a Gets the default_mode of this V1SecretVolumeSource. 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 V1SecretVolumeSource. :rtype: int )r)rrrrr4s z!V1SecretVolumeSource.default_modecCs ||_dS)a Sets the default_mode of this V1SecretVolumeSource. 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 V1SecretVolumeSource. :type: int N)r)rrrrrr?s cCs|jS)a Gets the items of this V1SecretVolumeSource. If unspecified, each key-value pair in the Data field of the referenced Secret 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 Secret, 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 V1SecretVolumeSource. :rtype: list[V1KeyToPath] )r)rrrrr Ks zV1SecretVolumeSource.itemscCs ||_dS)a Sets the items of this V1SecretVolumeSource. If unspecified, each key-value pair in the Data field of the referenced Secret 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 Secret, 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 V1SecretVolumeSource. :type: list[V1KeyToPath] N)r)rr rrrr Vs cCs|jS)z Gets the optional of this V1SecretVolumeSource. Specify whether the Secret or it's keys must be defined :return: The optional of this V1SecretVolumeSource. :rtype: bool )r)rrrrr bs zV1SecretVolumeSource.optionalcCs ||_dS)z Sets the optional of this V1SecretVolumeSource. Specify whether the Secret or it's keys must be defined :param optional: The optional of this V1SecretVolumeSource. :type: bool N)r)rr rrrr ms cCs|jS)a Gets the secret_name of this V1SecretVolumeSource. Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret :return: The secret_name of this V1SecretVolumeSource. :rtype: str )r)rrrrr ys z V1SecretVolumeSource.secret_namecCs ||_dS)a" Sets the secret_name of this V1SecretVolumeSource. Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret :param secret_name: The secret_name of this V1SecretVolumeSource. :type: str 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)xrrrsz.V1SecretVolumeSource.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rrgetattr isinstancelistmaprrdictr )rresultattr_valuerrrrs     zV1SecretVolumeSource.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1SecretVolumeSource.to_strcCs|jS)z* For `print` and `pprint` )r')rrrr__repr__szV1SecretVolumeSource.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s zV1SecretVolumeSource.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr*rrr__ne__szV1SecretVolumeSource.__ne__)NNNN)__name__ __module__ __qualname____doc__rpropertyrsetterr r r rr'r(r+r,rrrrrs       r)r0pprintrsixrreobjectrrrrr s