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ªeZdZdZddd„Zedd„ƒZejdd„ƒZedd „ƒZejd d „ƒZed d „ƒZ e jd d „ƒZ edd„ƒZ e jdd„ƒZ dd„Z dd„Z dd„Z dd„Zdd„ZdS)ÚV1alpha1Subjectzw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs<dddddœ|_dddddœ|_||_||_||_||_dS)aE V1alpha1Subject - 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. Ústr)Ú api_versionÚkindÚnameÚ namespaceÚ apiVersionrrr N)Ú swagger_typesÚ attribute_mapÚ _api_versionÚ_kindÚ_nameÚ _namespace)Úselfrrrr ©rúZ/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1alpha1_subject.pyÚ__init__s   zV1alpha1Subject.__init__cCs|jS)aX Gets the api_version of this V1alpha1Subject. APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. :return: The api_version of this V1alpha1Subject. :rtype: str )r )rrrrr4s zV1alpha1Subject.api_versioncCs ||_dS)ab Sets the api_version of this V1alpha1Subject. APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. :param api_version: The api_version of this V1alpha1Subject. :type: str N)r )rrrrrr?s cCs|jS)aR Gets the kind of this V1alpha1Subject. Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. :return: The kind of this V1alpha1Subject. :rtype: str )r)rrrrrKs zV1alpha1Subject.kindcCs|dkrtdƒ‚||_dS)aU Sets the kind of this V1alpha1Subject. Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. :param kind: The kind of this V1alpha1Subject. :type: str Nz,Invalid value for `kind`, must not be `None`)Ú ValueErrorr)rrrrrrVs cCs|jS)z­ Gets the name of this V1alpha1Subject. Name of the object being referenced. :return: The name of this V1alpha1Subject. :rtype: str )r)rrrrrds zV1alpha1Subject.namecCs|dkrtdƒ‚||_dS)z° Sets the name of this V1alpha1Subject. Name of the object being referenced. :param name: The name of this V1alpha1Subject. :type: str Nz,Invalid value for `name`, must not be `None`)rr)rrrrrros cCs|jS)a: Gets the namespace of this V1alpha1Subject. Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. :return: The namespace of this V1alpha1Subject. :rtype: str )r)rrrrr }s zV1alpha1Subject.namespacecCs ||_dS)aB Sets the namespace of this V1alpha1Subject. Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. :param namespace: The namespace of this V1alpha1Subject. :type: str 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)V1alpha1Subject.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     zV1alpha1Subject.to_dictcCs t|jƒƒS)z@ Returns the string representation of the model )rr)rrrrÚto_str®szV1alpha1Subject.to_strcCs|jƒS)z* For `print` and `pprint` )r&)rrrrÚ__repr__´szV1alpha1Subject.__repr__cCst|tƒsdS|j|jkS)z8 Returns true if both objects are equal F)rrÚ__dict__)rÚotherrrrÚ__eq__ºs zV1alpha1Subject.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr)rrrÚ__ne__ÃszV1alpha1Subject.__ne__)NNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyrÚsetterrrr rr&r'r*r+rrrrrs       r)r/ÚpprintrÚsixrÚreÚobjectrrrrrÚ s