Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement(search): add certificateStatusMessage to indexsearch response search attributes #47

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions atlan/model/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,19 +483,20 @@ type Meanings struct {
}

type SearchAttributes struct {
QualifiedName *string `json:"qualifiedName,omitempty"`
Name *string `json:"name,omitempty"`
UserDescription *string `json:"userDescription,omitempty"`
Description *string `json:"description,omitempty"`
DataType *string `json:"dataType,omitempty"`
IsPrimary *bool `json:"isPrimary,omitempty"`
IsNullable *bool `json:"isNullable,omitempty"`
OwnerGroups *[]string `json:"ownerGroups,omitempty"`
OwnerUsers *[]string `json:"ownerUsers,omitempty"`
AnnouncementType *atlan.AnnouncementType `json:"announcementType,omitempty"`
AnnouncementTitle *string `json:"announcementTitle,omitempty"`
AnnouncementMessage *string `json:"announcementMessage,omitempty"`
CertificateStatus *structs.CertificateStatus `json:"certificateStatus,omitempty"`
QualifiedName *string `json:"qualifiedName,omitempty"`
Name *string `json:"name,omitempty"`
UserDescription *string `json:"userDescription,omitempty"`
Description *string `json:"description,omitempty"`
DataType *string `json:"dataType,omitempty"`
IsPrimary *bool `json:"isPrimary,omitempty"`
IsNullable *bool `json:"isNullable,omitempty"`
OwnerGroups *[]string `json:"ownerGroups,omitempty"`
OwnerUsers *[]string `json:"ownerUsers,omitempty"`
AnnouncementType *atlan.AnnouncementType `json:"announcementType,omitempty"`
AnnouncementTitle *string `json:"announcementTitle,omitempty"`
AnnouncementMessage *string `json:"announcementMessage,omitempty"`
CertificateStatus *structs.CertificateStatus `json:"certificateStatus,omitempty"`
CertificateStatusMessage *string `json:"certificateStatusMessage,omitempty"`
}

func (sa *SearchAssets) UnmarshalJSON(data []byte) error {
Expand Down Expand Up @@ -545,13 +546,12 @@ func (sa *SearchAssets) UnmarshalJSON(data []byte) error {
sa.IsNullable = aux.SearchAttributes.IsNullable
sa.OwnerGroups = aux.SearchAttributes.OwnerGroups
sa.OwnerUsers = aux.SearchAttributes.OwnerUsers
sa.CertificateStatus = aux.SearchAttributes.CertificateStatus
sa.AnnouncementType = aux.SearchAttributes.AnnouncementType
sa.AnnouncementTitle = aux.SearchAttributes.AnnouncementTitle
sa.AnnouncementMessage = aux.SearchAttributes.AnnouncementMessage
sa.CertificateStatus = aux.SearchAttributes.CertificateStatus
sa.CertificateStatusMessage = aux.SearchAttributes.CertificateStatusMessage
}

if len(aux.SearchMeanings) > 0 {
}
return nil
}
Loading