1# coding: utf-8 2""" 3 Kubernetes 4 5 No description provided (generated by Swagger Codegen 6 https://github.com/swagger-api/swagger-codegen) 7 8 OpenAPI spec version: v1.14.4 9 10 Generated by: https://github.com/swagger-api/swagger-codegen.git 11""" 12 13from pprint import pformat 14from six import iteritems 15import re 16 17 18class V1beta1NonResourceAttributes(object): 19 """ 20 NOTE: This class is auto generated by the swagger code generator program. 21 Do not edit the class manually. 22 """ 23 """ 24 Attributes: 25 swagger_types (dict): The key is attribute name and the value is attribute 26 type. 27 attribute_map (dict): The key is attribute name and the value is json key 28 in definition. 29 """ 30 swagger_types = {'path': 'str', 'verb': 'str'} 31 32 attribute_map = {'path': 'path', 'verb': 'verb'} 33 34 def __init__(self, path=None, verb=None): 35 """ 36 V1beta1NonResourceAttributes - a model defined in Swagger 37 """ 38 39 self._path = None 40 self._verb = None 41 self.discriminator = None 42 43 if path is not None: 44 self.path = path 45 if verb is not None: 46 self.verb = verb 47 48 @property 49 def path(self): 50 """ 51 Gets the path of this V1beta1NonResourceAttributes. 52 Path is the URL path of the request 53 54 :return: The path of this V1beta1NonResourceAttributes. 55 :rtype: str 56 """ 57 return self._path 58 59 @path.setter 60 def path(self, path): 61 """ 62 Sets the path of this V1beta1NonResourceAttributes. 63 Path is the URL path of the request 64 65 :param path: The path of this V1beta1NonResourceAttributes. 66 :type: str 67 """ 68 69 self._path = path 70 71 @property 72 def verb(self): 73 """ 74 Gets the verb of this V1beta1NonResourceAttributes. 75 Verb is the standard HTTP verb 76 77 :return: The verb of this V1beta1NonResourceAttributes. 78 :rtype: str 79 """ 80 return self._verb 81 82 @verb.setter 83 def verb(self, verb): 84 """ 85 Sets the verb of this V1beta1NonResourceAttributes. 86 Verb is the standard HTTP verb 87 88 :param verb: The verb of this V1beta1NonResourceAttributes. 89 :type: str 90 """ 91 92 self._verb = verb 93 94 def to_dict(self): 95 """ 96 Returns the model properties as a dict 97 """ 98 result = {} 99 100 for attr, _ in iteritems(self.swagger_types): 101 value = getattr(self, attr) 102 if isinstance(value, list): 103 result[attr] = list( 104 map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value)) 105 elif hasattr(value, 'to_dict'): 106 result[attr] = value.to_dict() 107 elif isinstance(value, dict): 108 result[attr] = dict( 109 map( 110 lambda item: (item[0], item[1].to_dict()) 111 if hasattr(item[1], 'to_dict') else item, value.items())) 112 else: 113 result[attr] = value 114 115 return result 116 117 def to_str(self): 118 """ 119 Returns the string representation of the model 120 """ 121 return pformat(self.to_dict()) 122 123 def __repr__(self): 124 """ 125 For `print` and `pprint` 126 """ 127 return self.to_str() 128 129 def __eq__(self, other): 130 """ 131 Returns true if both objects are equal 132 """ 133 if not isinstance(other, V1beta1NonResourceAttributes): 134 return False 135 136 return self.__dict__ == other.__dict__ 137 138 def __ne__(self, other): 139 """ 140 Returns true if both objects are not equal 141 """ 142 return not self == other 143