From da6863d2e0e5e6518b4cbbb8caac0b506d056d48 Mon Sep 17 00:00:00 2001 From: IsaiasA1 <109099794+IsaiasA1@users.noreply.github.com> Date: Wed, 23 Oct 2024 09:39:08 -0500 Subject: [PATCH] Update PeerMdm stuct to reflect current output (#139) --- types/v1/templateTypes.go | 5 +++++ types/v1/types.go | 22 +++++++++++----------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/types/v1/templateTypes.go b/types/v1/templateTypes.go index 9ddff98..df3ce98 100644 --- a/types/v1/templateTypes.go +++ b/types/v1/templateTypes.go @@ -986,3 +986,8 @@ type Categories struct { type TemplateDetailsFilter struct { TemplateDetails []TemplateDetails `json:"serviceTemplate"` } + +// IPListNoRole model for Peer Mdm +type IPListNoRole struct { + IP string `json:"ip,omitempty"` +} diff --git a/types/v1/types.go b/types/v1/types.go index e579cd7..ac919f1 100644 --- a/types/v1/types.go +++ b/types/v1/types.go @@ -1197,17 +1197,17 @@ type SnapshotPolicyQueryIDByKeyParam struct { // PeerMDM defines a replication peer system. type PeerMDM struct { - ID string `json:"id"` - Name string `json:"name"` - Port int `json:"port"` - PeerSystemID string `json:"peerSystemId"` - SystemID string `json:"systemId"` - SoftwareVersionInfo string `json:"softwareVersionInfo"` - MembershipState string `json:"membershipState"` - PerfProfile string `json:"perfProfile"` - NetworkType string `json:"networkType"` - CouplingRC string `json:"couplingRC"` - IPList []*PeerMDM `json:"ipList"` + ID string `json:"id"` + Name string `json:"name"` + Port int `json:"port"` + PeerSystemID string `json:"peerSystemId"` + SystemID string `json:"systemId"` + SoftwareVersionInfo string `json:"softwareVersionInfo"` + MembershipState string `json:"membershipState"` + PerfProfile string `json:"perfProfile"` + NetworkType string `json:"networkType"` + CouplingRC string `json:"couplingRC"` + IPList []*IPListNoRole `json:"ipList"` } // ReplicationConsistencyGroup (RCG) has information about a replication session