in python/alibabacloud_ha3engine/models.py [0:0]
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.query is not None:
result['query'] = self.query
if self.cluster is not None:
result['cluster'] = self.cluster
if self.config is not None:
result['config'] = self.config.to_map()
if self.filter is not None:
result['filter'] = self.filter
if self.kvpairs is not None:
result['kvpairs'] = self.kvpairs
result['sort'] = []
if self.sort is not None:
for k in self.sort:
result['sort'].append(k.to_map() if k else None)
result['aggregate'] = []
if self.aggregate is not None:
for k in self.aggregate:
result['aggregate'].append(k.to_map() if k else None)
result['distinct'] = []
if self.distinct is not None:
for k in self.distinct:
result['distinct'].append(k.to_map() if k else None)
if self.custom_query is not None:
result['customConfig'] = self.custom_query
return result