class MemberPOST(base.BaseType): """Defines mandatory and optional attributes of a POST request.""" id = wtypes.wsattr(wtypes.UuidType()) enabled = wtypes.wsattr(bool, default=True) ip_address = wtypes.wsattr(base.IPAddressType(), mandatory=True) protocol_port = wtypes.wsattr(wtypes.IntegerType(), mandatory=True) weight = wtypes.wsattr(wtypes.IntegerType(), default=1) subnet_id = wtypes.wsattr(wtypes.UuidType())
class MemberResponse(base.BaseType): """Defines which attributes are to be shown on any response.""" id = wtypes.wsattr(wtypes.UuidType()) operating_status = wtypes.wsattr(wtypes.StringType()) enabled = wtypes.wsattr(bool) ip_address = wtypes.wsattr(base.IPAddressType()) protocol_port = wtypes.wsattr(wtypes.IntegerType()) weight = wtypes.wsattr(wtypes.IntegerType()) subnet_id = wtypes.wsattr(wtypes.UuidType())
class MemberPOST(base.BaseType): """Defines mandatory and optional attributes of a POST request.""" id = wtypes.wsattr(wtypes.UuidType()) enabled = wtypes.wsattr(bool, default=True) ip_address = wtypes.wsattr(base.IPAddressType(), mandatory=True) protocol_port = wtypes.wsattr(wtypes.IntegerType(), mandatory=True) weight = wtypes.wsattr(wtypes.IntegerType(), default=1) subnet_id = wtypes.wsattr(wtypes.UuidType()) # TODO(johnsom) Remove after deprecation (R series) project_id = wtypes.wsattr(wtypes.StringType(max_length=36))
class VIP(base.BaseType): """Defines the response and acceptable POST request attributes.""" ip_address = wtypes.wsattr(base.IPAddressType()) port_id = wtypes.wsattr(wtypes.UuidType()) subnet_id = wtypes.wsattr(wtypes.UuidType())