Skip to content

Commit

Permalink
Merge pull request #16 from atlanhq/data-contracts
Browse files Browse the repository at this point in the history
Add DataContracts typedef
  • Loading branch information
0xquark authored Apr 29, 2024
2 parents 62008b3 + b70f0cc commit 98b6a78
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions atlan/model/assets/datacontract.go
Original file line number Diff line number Diff line change
@@ -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"`
Expand All @@ -18,3 +33,4 @@ type RelAttribute struct {
TypeName *string `json:"typeName,omitempty"`
UniqueAttributes *UniqueAttributes `json:"uniqueAttributes,omitempty"`
}
*/

0 comments on commit 98b6a78

Please sign in to comment.