in catalog-api/python/pyodps_catalog/models.py [0:0]
def to_map(self):
_map = super().to_map()
if _map is not None:
return _map
result = dict()
if self.etag is not None:
result['etag'] = self.etag
if self.name is not None:
result['name'] = self.name
if self.project_id is not None:
result['projectId'] = self.project_id
if self.schema_name is not None:
result['schemaName'] = self.schema_name
if self.table_name is not None:
result['tableName'] = self.table_name
if self.type is not None:
result['type'] = self.type
if self.description is not None:
result['description'] = self.description
if self.table_schema is not None:
result['tableSchema'] = self.table_schema.to_map()
if self.clustering is not None:
result['clustering'] = self.clustering.to_map()
if self.table_constraints is not None:
result['tableConstraints'] = self.table_constraints.to_map()
if self.partition_definition is not None:
result['partitionDefinition'] = self.partition_definition.to_map()
if self.table_format_definition is not None:
result['tableFormatDefinition'] = self.table_format_definition.to_map()
if self.create_time is not None:
result['createTime'] = self.create_time
if self.last_modified_time is not None:
result['lastModifiedTime'] = self.last_modified_time
if self.expiration_options is not None:
result['expirationOptions'] = self.expiration_options.to_map()
if self.labels is not None:
result['labels'] = self.labels
return result