3 f÷ÔYQ$ã@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ÄeZdZdZddd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZed d „ƒZ e jd d „ƒZ edd„ƒZ e jdd„ƒZ edd„ƒZ e jdd„ƒZ dd„Z dd„Z dd„Zdd„Zdd„ZdS)ÚV1PodSecurityContextzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsFddddddœ|_dddd d dœ|_||_||_||_||_||_d S) aJ V1PodSecurityContext - 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. ÚintÚboolÚV1SELinuxOptionsz list[int])Úfs_groupÚrun_as_non_rootÚ run_as_userÚse_linux_optionsÚsupplemental_groupsZfsGroupZ runAsNonRootZ runAsUserZseLinuxOptionsZsupplementalGroupsN)Ú swagger_typesÚ attribute_mapÚ _fs_groupÚ_run_as_non_rootÚ _run_as_userÚ_se_linux_optionsÚ_supplemental_groups)Úselfrr r r r ©rúa/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_pod_security_context.pyÚ__init__s   zV1PodSecurityContext.__init__cCs|jS)aA Gets the fs_group of this V1PodSecurityContext. A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. :return: The fs_group of this V1PodSecurityContext. :rtype: int )r)rrrrr7s zV1PodSecurityContext.fs_groupcCs ||_dS)aH Sets the fs_group of this V1PodSecurityContext. A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. :param fs_group: The fs_group of this V1PodSecurityContext. :type: int N)r)rrrrrrBs cCs|jS)aD Gets the run_as_non_root of this V1PodSecurityContext. 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 SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. :return: The run_as_non_root of this V1PodSecurityContext. :rtype: bool )r)rrrrr Ns z$V1PodSecurityContext.run_as_non_rootcCs ||_dS)aR Sets the run_as_non_root of this V1PodSecurityContext. 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 SecurityContext. 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 V1PodSecurityContext. :type: bool N)r)rr rrrr Ys cCs|jS)a½ Gets the run_as_user of this V1PodSecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :return: The run_as_user of this V1PodSecurityContext. :rtype: int )r)rrrrr es z V1PodSecurityContext.run_as_usercCs ||_dS)aÇ Sets the run_as_user of this V1PodSecurityContext. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :param run_as_user: The run_as_user of this V1PodSecurityContext. :type: int N)r)rr rrrr ps cCs|jS)aö Gets the se_linux_options of this V1PodSecurityContext. The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :return: The se_linux_options of this V1PodSecurityContext. :rtype: V1SELinuxOptions )r)rrrrr |s z%V1PodSecurityContext.se_linux_optionscCs ||_dS)a Sets the se_linux_options of this V1PodSecurityContext. The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. :param se_linux_options: The se_linux_options of this V1PodSecurityContext. :type: V1SELinuxOptions N)r)rr rrrr ‡s cCs|jS)ab Gets the supplemental_groups of this V1PodSecurityContext. A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. :return: The supplemental_groups of this V1PodSecurityContext. :rtype: list[int] )r)rrrrr “s z(V1PodSecurityContext.supplemental_groupscCs ||_dS)at Sets the supplemental_groups of this V1PodSecurityContext. A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. :param supplemental_groups: The supplemental_groups of this V1PodSecurityContext. :type: list[int] N)r)rr rrrr ž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.V1PodSecurityContext.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     zV1PodSecurityContext.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_strÄszV1PodSecurityContext.to_strcCs|jƒS)z* For `print` and `pprint` )r()rrrrÚ__repr__ÊszV1PodSecurityContext.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__Ðs zV1PodSecurityContext.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr+rrrÚ__ne__ÙszV1PodSecurityContext.__ne__)NNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterr r r r rr(r)r,r-rrrrrs"        r)r1ÚpprintrÚsixrÚreÚobjectrrrrrÚ s