Skip to content

Commit

Permalink
No more top level resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Ehrich committed Apr 20, 2021
1 parent 24577c6 commit 61e33b8
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Network/Network/Models/BYOIP/PSCustomIpPrefix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ public string PublicIpPrefixesText
{
get { return JsonConvert.SerializeObject(PublicIpPrefixes, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
}

public PSExtendedLocation ExtendedLocation { get; set; }
}
}
2 changes: 2 additions & 0 deletions src/Network/Network/Models/PSNetworkInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/Network/Network/Models/PSPrivateEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public partial class PSPrivateEndpoint : PSTopLevelResource
public List<PSPrivateLinkServiceConnection> PrivateLinkServiceConnections { get; set; }
public List<PSPrivateLinkServiceConnection> ManualPrivateLinkServiceConnections { get; set; }
public List<PSPrivateEndpointCustomDnsConfig> CustomDnsConfigs { get; set; }
public PSExtendedLocation ExtendedLocation { get; set; }

[JsonIgnore]
public string SubnetText
Expand Down
2 changes: 2 additions & 0 deletions src/Network/Network/Models/PSPrivateLinkService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,7 @@ public string AutoApprovalText
{
get { return JsonConvert.SerializeObject(AutoApproval, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
}

public PSExtendedLocation ExtendedLocation { get; set; }
}
}
2 changes: 2 additions & 0 deletions src/Network/Network/Models/PSPublicIpAddress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,7 @@ public string PublicIpPrefixText
{
get { return JsonConvert.SerializeObject(PublicIpPrefix, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
}

public PSExtendedLocation ExtendedLocation { get; set; }
}
}
2 changes: 2 additions & 0 deletions src/Network/Network/Models/PSPublicIpPrefix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,7 @@ public string SkuText
{
get { return JsonConvert.SerializeObject(Sku, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
}

public PSExtendedLocation ExtendedLocation { get; set; }
}
}
2 changes: 0 additions & 2 deletions src/Network/Network/Models/PSTopLevelResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
2 changes: 2 additions & 0 deletions src/Network/Network/Models/PSVirtualNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public class PSVirtualNetwork : PSTopLevelResource, IResourceReference, IVirtual

public List<PSResourceId> IpAllocations { get; set; }

public PSExtendedLocation ExtendedLocation { get; set; }

[JsonIgnore]
public string AddressSpaceText
{
Expand Down

0 comments on commit 61e33b8

Please sign in to comment.