From edb4bae35d4413faa7b64c12ab9cdb70422cc7b0 Mon Sep 17 00:00:00 2001 From: Will Ehrich Date: Tue, 20 Apr 2021 23:16:48 -0700 Subject: [PATCH] Make extended location specific to PSNetworkInterface --- src/Network/Network/Models/PSNetworkInterface.cs | 2 ++ src/Network/Network/Models/PSTopLevelResource.cs | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Network/Network/Models/PSNetworkInterface.cs b/src/Network/Network/Models/PSNetworkInterface.cs index f51da0dfe175..1192f672a9eb 100644 --- a/src/Network/Network/Models/PSNetworkInterface.cs +++ b/src/Network/Network/Models/PSNetworkInterface.cs @@ -86,6 +86,8 @@ public string PrivateEndpointText get { return JsonConvert.SerializeObject(PrivateEndpoint, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); } } + public PSExtendedLocation ExtendedLocation { get; set; } + public bool ShouldSerializeIpConfigurations() { return !string.IsNullOrEmpty(this.Name); diff --git a/src/Network/Network/Models/PSTopLevelResource.cs b/src/Network/Network/Models/PSTopLevelResource.cs index cad7a2852c3f..0888bfa7edb9 100644 --- a/src/Network/Network/Models/PSTopLevelResource.cs +++ b/src/Network/Network/Models/PSTopLevelResource.cs @@ -26,8 +26,6 @@ public class PSTopLevelResource : PSChildResource [Ps1Xml(Label = "Location", Target = ViewControl.Table, Position = 2)] public string Location { get; set; } - public PSExtendedLocation ExtendedLocation { get; set; } - public string ResourceGuid { get; set; } public string Type { get; set; }