3 fYT @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@seZdZdZd$ddZeddZejddZedd Zejd d Zed d Z e jd d Z eddZ e jddZ eddZ e jddZ eddZ e jddZ eddZ e jddZ ddZddZddZd d!Zd"d#ZdS)%V1ResourceAttributeszw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCsZdddddddd|_ddddddd d|_||_||_||_||_||_||_||_d S) aJ V1ResourceAttributes - 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)groupname namespaceresource subresourceverbversionrrrr r r r N) swagger_types attribute_map_group_name _namespace _resource _subresource_verb_version)selfrrrr r r r r`/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1_resource_attributes.py__init__s*   zV1ResourceAttributes.__init__cCs|jS)z Gets the group of this V1ResourceAttributes. Group is the API Group of the Resource. "*" means all. :return: The group of this V1ResourceAttributes. :rtype: str )r)rrrrr=s zV1ResourceAttributes.groupcCs ||_dS)z Sets the group of this V1ResourceAttributes. Group is the API Group of the Resource. "*" means all. :param group: The group of this V1ResourceAttributes. :type: str N)r)rrrrrrHs cCs|jS)a Gets the name of this V1ResourceAttributes. Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. :return: The name of this V1ResourceAttributes. :rtype: str )r)rrrrrTs zV1ResourceAttributes.namecCs ||_dS)a Sets the name of this V1ResourceAttributes. Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. :param name: The name of this V1ResourceAttributes. :type: str N)r)rrrrrr_s cCs|jS)a Gets the namespace of this V1ResourceAttributes. Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview :return: The namespace of this V1ResourceAttributes. :rtype: str )r)rrrrrks zV1ResourceAttributes.namespacecCs ||_dS)a Sets the namespace of this V1ResourceAttributes. Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview :param namespace: The namespace of this V1ResourceAttributes. :type: str N)r)rrrrrrvs cCs|jS)z Gets the resource of this V1ResourceAttributes. Resource is one of the existing resource types. "*" means all. :return: The resource of this V1ResourceAttributes. :rtype: str )r)rrrrr s zV1ResourceAttributes.resourcecCs ||_dS)z Sets the resource of this V1ResourceAttributes. Resource is one of the existing resource types. "*" means all. :param resource: The resource of this V1ResourceAttributes. :type: str N)r)rr rrrr s cCs|jS)z Gets the subresource of this V1ResourceAttributes. Subresource is one of the existing resource types. "" means none. :return: The subresource of this V1ResourceAttributes. :rtype: str )r)rrrrr s z V1ResourceAttributes.subresourcecCs ||_dS)z Sets the subresource of this V1ResourceAttributes. Subresource is one of the existing resource types. "" means none. :param subresource: The subresource of this V1ResourceAttributes. :type: str N)r)rr rrrr s cCs|jS)a Gets the verb of this V1ResourceAttributes. Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. :return: The verb of this V1ResourceAttributes. :rtype: str )r)rrrrr s zV1ResourceAttributes.verbcCs ||_dS)a Sets the verb of this V1ResourceAttributes. Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. :param verb: The verb of this V1ResourceAttributes. :type: str N)r)rr rrrr s cCs|jS)z Gets the version of this V1ResourceAttributes. Version is the API Version of the Resource. "*" means all. :return: The version of this V1ResourceAttributes. :rtype: str )r)rrrrr s zV1ResourceAttributes.versioncCs ||_dS)z Sets the version of this V1ResourceAttributes. Version is the API Version of the Resource. "*" means all. :param version: The version of this V1ResourceAttributes. :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.V1ResourceAttributes.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrs     zV1ResourceAttributes.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1ResourceAttributes.to_strcCs|jS)z* For `print` and `pprint` )r*)rrrr__repr__szV1ResourceAttributes.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)r!r__dict__)rotherrrr__eq__s zV1ResourceAttributes.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr-rrr__ne__ szV1ResourceAttributes.__ne__)NNNNNNN)__name__ __module__ __qualname____doc__rpropertyrsetterrrr r r r rr*r+r.r/rrrrrs* %         r)r3pprintrsixrreobjectrrrrr s