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 ddZ ddZ ddZ ddZ ddZdS) V1alpha1Rulezw NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. NcCs2dddd|_dddd|_||_||_||_dS)aB V1alpha1Rule - 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. z list[str]) api_groups api_versions resources apiGroupsZ apiVersionsrN) swagger_types attribute_map _api_groups _api_versions _resources)selfrrrrW/Users/olari/OneDrive/sandbox/awsBlog2/lambda/kubernetes/client/models/v1alpha1_rule.py__init__s   zV1alpha1Rule.__init__cCs|jS)a Gets the api_groups of this V1alpha1Rule. APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. :return: The api_groups of this V1alpha1Rule. :rtype: list[str] )r )rrrrr1s zV1alpha1Rule.api_groupscCs ||_dS)a' Sets the api_groups of this V1alpha1Rule. APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. :param api_groups: The api_groups of this V1alpha1Rule. :type: list[str] N)r )rrrrrr<s cCs|jS)a( Gets the api_versions of this V1alpha1Rule. APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. :return: The api_versions of this V1alpha1Rule. :rtype: list[str] )r )rrrrrHs zV1alpha1Rule.api_versionscCs ||_dS)a3 Sets the api_versions of this V1alpha1Rule. APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. :param api_versions: The api_versions of this V1alpha1Rule. :type: list[str] N)r )rrrrrrSs cCs|jS)a~ Gets the resources of this V1alpha1Rule. Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. :return: The resources of this V1alpha1Rule. :rtype: list[str] )r )rrrrr_s zV1alpha1Rule.resourcescCs ||_dS)a Sets the resources of this V1alpha1Rule. Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. :param resources: The resources of this V1alpha1Rule. :type: list[str] N)r )rrrrrrjs 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&V1alpha1Rule.to_dict..rcSs&t|ddr"|d|djfS|S)Nrr)rr)itemrrrrs) rr getattr isinstancelistmaprrdictitems)rresultattr_valuerrrrvs     zV1alpha1Rule.to_dictcCs t|jS)z@ Returns the string representation of the model )rr)rrrrto_strszV1alpha1Rule.to_strcCs|jS)z* For `print` and `pprint` )r")rrrr__repr__szV1alpha1Rule.__repr__cCst|tsdS|j|jkS)z8 Returns true if both objects are equal F)rr__dict__)rotherrrr__eq__s zV1alpha1Rule.__eq__cCs ||k S)z< Returns true if both objects are not equal r)rr%rrr__ne__szV1alpha1Rule.__ne__)NNN)__name__ __module__ __qualname____doc__rpropertyrsetterrrrr"r#r&r'rrrrrs      r)r+pprintrsixrreobjectrrrrr s