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 V1beta1CustomResourceSubresources(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 = { 31 'scale': 'V1beta1CustomResourceSubresourceScale', 32 'status': 'object' 33 } 34 35 attribute_map = {'scale': 'scale', 'status': 'status'} 36 37 def __init__(self, scale=None, status=None): 38 """ 39 V1beta1CustomResourceSubresources - a model defined in Swagger 40 """ 41 42 self._scale = None 43 self._status = None 44 self.discriminator = None 45 46 if scale is not None: 47 self.scale = scale 48 if status is not None: 49 self.status = status 50 51 @property 52 def scale(self): 53 """ 54 Gets the scale of this V1beta1CustomResourceSubresources. 55 Scale denotes the scale subresource for CustomResources 56 57 :return: The scale of this V1beta1CustomResourceSubresources. 58 :rtype: V1beta1CustomResourceSubresourceScale 59 """ 60 return self._scale 61 62 @scale.setter 63 def scale(self, scale): 64 """ 65 Sets the scale of this V1beta1CustomResourceSubresources. 66 Scale denotes the scale subresource for CustomResources 67 68 :param scale: The scale of this V1beta1CustomResourceSubresources. 69 :type: V1beta1CustomResourceSubresourceScale 70 """ 71 72 self._scale = scale 73 74 @property 75 def status(self): 76 """ 77 Gets the status of this V1beta1CustomResourceSubresources. 78 Status denotes the status subresource for CustomResources 79 80 :return: The status of this V1beta1CustomResourceSubresources. 81 :rtype: object 82 """ 83 return self._status 84 85 @status.setter 86 def status(self, status): 87 """ 88 Sets the status of this V1beta1CustomResourceSubresources. 89 Status denotes the status subresource for CustomResources 90 91 :param status: The status of this V1beta1CustomResourceSubresources. 92 :type: object 93 """ 94 95 self._status = status 96 97 def to_dict(self): 98 """ 99 Returns the model properties as a dict 100 """ 101 result = {} 102 103 for attr, _ in iteritems(self.swagger_types): 104 value = getattr(self, attr) 105 if isinstance(value, list): 106 result[attr] = list( 107 map(lambda x: x.to_dict() if hasattr(x, 'to_dict') else x, value)) 108 elif hasattr(value, 'to_dict'): 109 result[attr] = value.to_dict() 110 elif isinstance(value, dict): 111 result[attr] = dict( 112 map( 113 lambda item: (item[0], item[1].to_dict()) 114 if hasattr(item[1], 'to_dict') else item, value.items())) 115 else: 116 result[attr] = value 117 118 return result 119 120 def to_str(self): 121 """ 122 Returns the string representation of the model 123 """ 124 return pformat(self.to_dict()) 125 126 def __repr__(self): 127 """ 128 For `print` and `pprint` 129 """ 130 return self.to_str() 131 132 def __eq__(self, other): 133 """ 134 Returns true if both objects are equal 135 """ 136 if not isinstance(other, V1beta1CustomResourceSubresources): 137 return False 138 139 return self.__dict__ == other.__dict__ 140 141 def __ne__(self, other): 142 """ 143 Returns true if both objects are not equal 144 """ 145 return not self == other 146