3 f÷ÔY#%ã@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ÞeZdZdZd!dd„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 dd„Z dd„Zdd„Zdd„Zdd „ZdS)"ÚV1SecurityContextzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsPdddddddœ|_dddd d d dœ|_||_||_||_||_||_||_d S) aG V1SecurityContext - 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. ÚV1CapabilitiesÚboolÚintÚV1SELinuxOptions)Ú capabilitiesÚ privilegedÚread_only_root_filesystemÚrun_as_non_rootÚ run_as_userÚse_linux_optionsr r ZreadOnlyRootFilesystemÚ runAsNonRootÚ runAsUserÚseLinuxOptionsN)Ú swagger_typesÚ attribute_mapÚ _capabilitiesÚ _privilegedÚ_read_only_root_filesystemÚ_run_as_non_rootÚ _run_as_userÚ_se_linux_options)Úselfr r r r r r©rú]/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_security_context.pyÚ__init__s$   zV1SecurityContext.__init__cCs|jS)a+ Gets the capabilities of this V1SecurityContext. The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. :return: The capabilities of this V1SecurityContext. :rtype: V1Capabilities )r)rrrrr :s zV1SecurityContext.capabilitiescCs ||_dS)a6 Sets the capabilities of this V1SecurityContext. The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. :param capabilities: The capabilities of this V1SecurityContext. :type: V1Capabilities N)r)rr rrrr Es cCs|jS)a! Gets the privileged of this V1SecurityContext. Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. :return: The privileged of this V1SecurityContext. :rtype: bool )r)rrrrr Qs zV1SecurityContext.privilegedcCs ||_dS)a* Sets the privileged of this V1SecurityContext. Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. :param privileged: The privileged of this V1SecurityContext. :type: bool N)r)rr rrrr \s cCs|jS)a Gets the read_only_root_filesystem of this V1SecurityContext. Whether this container has a read-only root filesystem. Default is false. :return: The read_only_root_filesystem of this V1SecurityContext. :rtype: bool )r)rrrrr hs z+V1SecurityContext.read_only_root_filesystemcCs ||_dS)a Sets the read_only_root_filesystem of this V1SecurityContext. Whether this container has a read-only root filesystem. Default is false. :param read_only_root_filesystem: The read_only_root_filesystem of this V1SecurityContext. :type: bool N)r)rr rrrr ss cCs|jS)aA Gets the run_as_non_root of this V1SecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_non_root of this V1SecurityContext. :rtype: bool )r)rrrrr s z!V1SecurityContext.run_as_non_rootcCs ||_dS)aO Sets the run_as_non_root of this V1SecurityContext. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param run_as_non_root: The run_as_non_root of this V1SecurityContext. :type: bool N)r)rr rrrr Šs cCs|jS)a§ Gets the run_as_user of this V1SecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_user of this V1SecurityContext. :rtype: int )r)rrrrr –s zV1SecurityContext.run_as_usercCs ||_dS)a± Sets the run_as_user of this V1SecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param run_as_user: The run_as_user of this V1SecurityContext. :type: int N)r)rr rrrr ¡s cCs|jS)aß Gets the se_linux_options of this V1SecurityContext. The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The se_linux_options of this V1SecurityContext. :rtype: V1SELinuxOptions )r)rrrrr­s z"V1SecurityContext.se_linux_optionscCs ||_dS)aî Sets the se_linux_options of this V1SecurityContext. The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :param se_linux_options: The se_linux_options of this V1SecurityContext. :type: V1SELinuxOptions N)r)rrrrrr¸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)ÚxrrrÚÎsz+V1SecurityContext.to_dict..rcSs&t|ddƒr"|d|djƒfS|S)Nérr)rr)Úitemrrrr!Õs) rrÚgetattrÚ isinstanceÚlistÚmaprrÚdictÚitems)rÚresultÚattrÚ_ÚvaluerrrrÄs     zV1SecurityContext.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_strÞszV1SecurityContext.to_strcCs|jƒS)z* For `print` and `pprint` )r.)rrrrÚ__repr__äszV1SecurityContext.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)r%rÚ__dict__)rÚotherrrrÚ__eq__ês zV1SecurityContext.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr1rrrÚ__ne__ószV1SecurityContext.__ne__)NNNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyr Úsetterr r r r rrr.r/r2r3rrrrrs& "        r)r7ÚpprintrÚsixrÚreÚobjectrrrrrÚ s