From b70f0cc43d331c4ed84da06328e9ca719c719842 Mon Sep 17 00:00:00 2001 From: Karanjot Singh Date: Sat, 27 Apr 2024 17:47:04 +0530 Subject: [PATCH] Add datacontract typedef Signed-off-by: Karanjot Singh --- atlan/model/assets/datacontract.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/atlan/model/assets/datacontract.go b/atlan/model/assets/datacontract.go index 001dd87..8728da4 100644 --- a/atlan/model/assets/datacontract.go +++ b/atlan/model/assets/datacontract.go @@ -1,5 +1,20 @@ package assets +type DataContract struct { + Catalog + DataContractJson *string `json:"dataContractJson,omitempty"` + Version *string `json:"dataContractVersion,omitempty"` + AssetGuid *string `json:"dataContractAssetGuid,omitempty"` + // Relationships + LatestCertified *[]Asset `json:"dataContractLatestCertified,omitempty"` + ContractAssetCertified *[]DataContract `json:"dataContractAssetCertified,omitempty"` + ContractLatest *[]Asset `json:"dataContractLatest,omitempty"` + ContractAssetLatest *[]DataContract `json:"dataContractAssetLatest,omitempty"` + ContractPreviousVersion *[]DataContract `json:"dataContractPreviousVersion,omitempty"` + ContractNextVersion *[]DataContract `json:"dataContractNextVersion,omitempty"` +} + +/* type DataContract struct { Asset Name *string `json:"name,omitempty"` @@ -18,3 +33,4 @@ type RelAttribute struct { TypeName *string `json:"typeName,omitempty"` UniqueAttributes *UniqueAttributes `json:"uniqueAttributes,omitempty"` } +*/