diff --git a/services/managementpartner/mgmt/2018-02-01/managementpartner/models.go b/services/managementpartner/mgmt/2018-02-01/managementpartner/models.go index f17f2eb90157..604fe9a1da5e 100644 --- a/services/managementpartner/mgmt/2018-02-01/managementpartner/models.go +++ b/services/managementpartner/mgmt/2018-02-01/managementpartner/models.go @@ -199,6 +199,8 @@ type OperationResponse struct { type PartnerProperties struct { // PartnerID - This is the partner id PartnerID *string `json:"partnerId,omitempty"` + // PartnerName - This is the partner name + PartnerName *string `json:"partnerName,omitempty"` // TenantID - This is the tenant id. TenantID *string `json:"tenantId,omitempty"` // ObjectID - This is the object id. @@ -228,27 +230,6 @@ type PartnerResponse struct { Type *string `json:"type,omitempty"` } -// MarshalJSON is the custom marshaler for PartnerResponse. -func (pr PartnerResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pr.Etag != nil { - objectMap["etag"] = pr.Etag - } - if pr.ID != nil { - objectMap["id"] = pr.ID - } - if pr.Name != nil { - objectMap["name"] = pr.Name - } - if pr.PartnerProperties != nil { - objectMap["properties"] = pr.PartnerProperties - } - if pr.Type != nil { - objectMap["type"] = pr.Type - } - return json.Marshal(objectMap) -} - // UnmarshalJSON is the custom unmarshaler for PartnerResponse struct. func (pr *PartnerResponse) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage