From 95c6dfae76f3286251298bf600dc2a78ab71ad06 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 3 Apr 2019 18:53:54 +0000 Subject: [PATCH] Generated from 215b006997fc053d43337cd0455d8bdfdbe18898 Add Managed Identity envelope to SitePatchResource Add Managed Identity envelope to SitePatchResource object to allow PATCH identity operations to a site through Swagger --- services/web/mgmt/2018-02-01/web/models.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/services/web/mgmt/2018-02-01/web/models.go b/services/web/mgmt/2018-02-01/web/models.go index 73466f7962f3..eb7c288c42d6 100644 --- a/services/web/mgmt/2018-02-01/web/models.go +++ b/services/web/mgmt/2018-02-01/web/models.go @@ -19331,6 +19331,7 @@ type SiteMachineKey struct { type SitePatchResource struct { // SitePatchResourceProperties - SitePatchResource resource specific properties *SitePatchResourceProperties `json:"properties,omitempty"` + Identity *ManagedServiceIdentity `json:"identity,omitempty"` // ID - Resource Id. ID *string `json:"id,omitempty"` // Name - Resource Name. @@ -19347,6 +19348,9 @@ func (spr SitePatchResource) MarshalJSON() ([]byte, error) { if spr.SitePatchResourceProperties != nil { objectMap["properties"] = spr.SitePatchResourceProperties } + if spr.Identity != nil { + objectMap["identity"] = spr.Identity + } if spr.ID != nil { objectMap["id"] = spr.ID } @@ -19380,6 +19384,15 @@ func (spr *SitePatchResource) UnmarshalJSON(body []byte) error { } spr.SitePatchResourceProperties = &sitePatchResourceProperties } + case "identity": + if v != nil { + var identity ManagedServiceIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + spr.Identity = &identity + } case "id": if v != nil { var ID string