From 48c1c30321a681831e2d2671a279a89a212b8284 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 16 Jun 2022 07:45:33 +0000 Subject: [PATCH] CodeGen from PR 19474 in Azure/azure-rest-api-specs Merge 923cd8e03b2f07304be97a6aaae67b0befd8a9f6 into c2d25c0f023edd1fea753a89d6409f3e7a9f8956 --- .../PrivateDnsZoneConfig.Serialization.cs | 37 ++++++- .../Generated/Models/PrivateDnsZoneConfig.cs | 19 +++- .../PrivateDnsZoneGroupData.Serialization.cs | 5 + .../PrivateEndpointData.Serialization.cs | 19 +++- ...vateLinkServiceConnection.Serialization.cs | 13 ++- .../Models/PrivateLinkServiceConnection.cs | 6 +- .../PrivateLinkServiceData.Serialization.cs | 19 +++- .../src/Generated/PrivateDnsZoneGroupData.cs | 2 +- .../src/Generated/PrivateEndpointData.cs | 7 +- .../src/Generated/PrivateLinkServiceData.cs | 7 +- .../src/autorest.md | 102 +++++++++--------- 11 files changed, 176 insertions(+), 60 deletions(-) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.Serialization.cs index 00b6c6be2280..457ccce543ff 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.Serialization.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Text.Json; +using Azure; using Azure.Core; namespace Azure.ResourceManager.Network.Models @@ -35,7 +36,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static PrivateDnsZoneConfig DeserializePrivateDnsZoneConfig(JsonElement element) { Optional name = default; + Optional id = default; + Optional type = default; + Optional etag = default; Optional privateDnsZoneId = default; + Optional provisioningState = default; Optional> recordSets = default; foreach (var property in element.EnumerateObject()) { @@ -44,6 +49,26 @@ internal static PrivateDnsZoneConfig DeserializePrivateDnsZoneConfig(JsonElement name = property.Value.GetString(); continue; } + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("etag")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } if (property.NameEquals("properties")) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -58,6 +83,16 @@ internal static PrivateDnsZoneConfig DeserializePrivateDnsZoneConfig(JsonElement privateDnsZoneId = property0.Value.GetString(); continue; } + if (property0.NameEquals("provisioningState")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + provisioningState = new NetworkProvisioningState(property0.Value.GetString()); + continue; + } if (property0.NameEquals("recordSets")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -77,7 +112,7 @@ internal static PrivateDnsZoneConfig DeserializePrivateDnsZoneConfig(JsonElement continue; } } - return new PrivateDnsZoneConfig(name.Value, privateDnsZoneId.Value, Optional.ToList(recordSets)); + return new PrivateDnsZoneConfig(name.Value, id.Value, type.Value, Optional.ToNullable(etag), privateDnsZoneId.Value, Optional.ToNullable(provisioningState), Optional.ToList(recordSets)); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.cs index 64d79f0037ae..5f660aef6314 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneConfig.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure; using Azure.Core; namespace Azure.ResourceManager.Network.Models @@ -21,19 +22,35 @@ public PrivateDnsZoneConfig() /// Initializes a new instance of PrivateDnsZoneConfig. /// Name of the resource that is unique within a resource group. This name can be used to access the resource. + /// The id of the privateDnsZoneConfig. + /// Type of resource. Will be specified as private dns zone configurations. + /// A unique read-only string that changes whenever the resource is updated. /// The resource id of the private dns zone. + /// The provisioning state of the private dns zone group resource. /// A collection of information regarding a recordSet, holding information to identify private resources. - internal PrivateDnsZoneConfig(string name, string privateDnsZoneId, IReadOnlyList recordSets) + internal PrivateDnsZoneConfig(string name, string id, string resourceType, ETag? etag, string privateDnsZoneId, NetworkProvisioningState? provisioningState, IReadOnlyList recordSets) { Name = name; + Id = id; + ResourceType = resourceType; + Etag = etag; PrivateDnsZoneId = privateDnsZoneId; + ProvisioningState = provisioningState; RecordSets = recordSets; } /// Name of the resource that is unique within a resource group. This name can be used to access the resource. public string Name { get; set; } + /// The id of the privateDnsZoneConfig. + public string Id { get; } + /// Type of resource. Will be specified as private dns zone configurations. + public string ResourceType { get; } + /// A unique read-only string that changes whenever the resource is updated. + public ETag? Etag { get; } /// The resource id of the private dns zone. public string PrivateDnsZoneId { get; set; } + /// The provisioning state of the private dns zone group resource. + public NetworkProvisioningState? ProvisioningState { get; } /// A collection of information regarding a recordSet, holding information to identify private resources. public IReadOnlyList RecordSets { get; } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneGroupData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneGroupData.Serialization.cs index 5e503300013d..5d8910daf614 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneGroupData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateDnsZoneGroupData.Serialization.cs @@ -28,6 +28,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("name"); writer.WriteStringValue(Name); } + if (Optional.IsDefined(ResourceType)) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(ResourceType.Value); + } writer.WritePropertyName("properties"); writer.WriteStartObject(); if (Optional.IsCollectionDefined(PrivateDnsZoneConfigs)) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateEndpointData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateEndpointData.Serialization.cs index 5d82d8275e51..d193231c7c2b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateEndpointData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateEndpointData.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using System.Text.Json; using Azure; @@ -46,6 +47,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("properties"); writer.WriteStartObject(); + if (Optional.IsDefined(ResourceGuid)) + { + writer.WritePropertyName("resourceGuid"); + writer.WriteStringValue(ResourceGuid.Value); + } if (Optional.IsDefined(Subnet)) { writer.WritePropertyName("subnet"); @@ -94,6 +100,7 @@ internal static PrivateEndpointData DeserializePrivateEndpointData(JsonElement e Optional type = default; Optional location = default; Optional> tags = default; + Optional resourceGuid = default; Optional subnet = default; Optional> networkInterfaces = default; Optional provisioningState = default; @@ -181,6 +188,16 @@ internal static PrivateEndpointData DeserializePrivateEndpointData(JsonElement e } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("resourceGuid")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + resourceGuid = property0.Value.GetGuid(); + continue; + } if (property0.NameEquals("subnet")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -265,7 +282,7 @@ internal static PrivateEndpointData DeserializePrivateEndpointData(JsonElement e continue; } } - return new PrivateEndpointData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(location), Optional.ToDictionary(tags), extendedLocation.Value, Optional.ToNullable(etag), subnet.Value, Optional.ToList(networkInterfaces), Optional.ToNullable(provisioningState), Optional.ToList(privateLinkServiceConnections), Optional.ToList(manualPrivateLinkServiceConnections), Optional.ToList(customDnsConfigs)); + return new PrivateEndpointData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(location), Optional.ToDictionary(tags), extendedLocation.Value, Optional.ToNullable(etag), Optional.ToNullable(resourceGuid), subnet.Value, Optional.ToList(networkInterfaces), Optional.ToNullable(provisioningState), Optional.ToList(privateLinkServiceConnections), Optional.ToList(manualPrivateLinkServiceConnections), Optional.ToList(customDnsConfigs)); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceConnection.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceConnection.Serialization.cs index 96fa0c21ffef..f590990d915d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceConnection.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceConnection.Serialization.cs @@ -34,6 +34,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("privateLinkServiceId"); writer.WriteStringValue(PrivateLinkServiceId); } + if (Optional.IsDefined(ResolvedPrivateLinkServiceLocation)) + { + writer.WritePropertyName("resolvedPrivateLinkServiceLocation"); + writer.WriteStringValue(ResolvedPrivateLinkServiceLocation); + } if (Optional.IsCollectionDefined(GroupIds)) { writer.WritePropertyName("groupIds"); @@ -66,6 +71,7 @@ internal static PrivateLinkServiceConnection DeserializePrivateLinkServiceConnec Optional type = default; Optional provisioningState = default; Optional privateLinkServiceId = default; + Optional resolvedPrivateLinkServiceLocation = default; Optional> groupIds = default; Optional requestMessage = default; Optional privateLinkServiceConnectionState = default; @@ -130,6 +136,11 @@ internal static PrivateLinkServiceConnection DeserializePrivateLinkServiceConnec privateLinkServiceId = property0.Value.GetString(); continue; } + if (property0.NameEquals("resolvedPrivateLinkServiceLocation")) + { + resolvedPrivateLinkServiceLocation = property0.Value.GetString(); + continue; + } if (property0.NameEquals("groupIds")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -164,7 +175,7 @@ internal static PrivateLinkServiceConnection DeserializePrivateLinkServiceConnec continue; } } - return new PrivateLinkServiceConnection(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(etag), Optional.ToNullable(provisioningState), privateLinkServiceId.Value, Optional.ToList(groupIds), requestMessage.Value, privateLinkServiceConnectionState.Value); + return new PrivateLinkServiceConnection(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(etag), Optional.ToNullable(provisioningState), privateLinkServiceId.Value, resolvedPrivateLinkServiceLocation.Value, Optional.ToList(groupIds), requestMessage.Value, privateLinkServiceConnectionState.Value); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceConnection.cs index 433bb338ede6..0f422d1570e5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceConnection.cs @@ -27,14 +27,16 @@ public PrivateLinkServiceConnection() /// A unique read-only string that changes whenever the resource is updated. /// The provisioning state of the private link service connection resource. /// The resource id of private link service. + /// The location for the resolved private link service. /// The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to. /// A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars. /// A collection of read-only information about the state of the connection to the remote resource. - internal PrivateLinkServiceConnection(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, NetworkProvisioningState? provisioningState, string privateLinkServiceId, IList groupIds, string requestMessage, NetworkPrivateLinkServiceConnectionState connectionState) : base(id, name, resourceType) + internal PrivateLinkServiceConnection(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, NetworkProvisioningState? provisioningState, string privateLinkServiceId, string resolvedPrivateLinkServiceLocation, IList groupIds, string requestMessage, NetworkPrivateLinkServiceConnectionState connectionState) : base(id, name, resourceType) { Etag = etag; ProvisioningState = provisioningState; PrivateLinkServiceId = privateLinkServiceId; + ResolvedPrivateLinkServiceLocation = resolvedPrivateLinkServiceLocation; GroupIds = groupIds; RequestMessage = requestMessage; ConnectionState = connectionState; @@ -46,6 +48,8 @@ internal PrivateLinkServiceConnection(ResourceIdentifier id, string name, Resour public NetworkProvisioningState? ProvisioningState { get; } /// The resource id of private link service. public string PrivateLinkServiceId { get; set; } + /// The location for the resolved private link service. + public string ResolvedPrivateLinkServiceLocation { get; set; } /// The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to. public IList GroupIds { get; } /// A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceData.Serialization.cs index c0e2a7bd3a6f..5869973717ab 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PrivateLinkServiceData.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using System.Text.Json; using Azure; @@ -56,6 +57,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(ResourceGuid)) + { + writer.WritePropertyName("resourceGuid"); + writer.WriteStringValue(ResourceGuid.Value); + } if (Optional.IsCollectionDefined(IPConfigurations)) { writer.WritePropertyName("ipConfigurations"); @@ -105,6 +111,7 @@ internal static PrivateLinkServiceData DeserializePrivateLinkServiceData(JsonEle Optional location = default; Optional> tags = default; Optional> loadBalancerFrontendIpConfigurations = default; + Optional resourceGuid = default; Optional> ipConfigurations = default; Optional> networkInterfaces = default; Optional provisioningState = default; @@ -210,6 +217,16 @@ internal static PrivateLinkServiceData DeserializePrivateLinkServiceData(JsonEle loadBalancerFrontendIpConfigurations = array; continue; } + if (property0.NameEquals("resourceGuid")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + resourceGuid = property0.Value.GetGuid(); + continue; + } if (property0.NameEquals("ipConfigurations")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -319,7 +336,7 @@ internal static PrivateLinkServiceData DeserializePrivateLinkServiceData(JsonEle continue; } } - return new PrivateLinkServiceData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(location), Optional.ToDictionary(tags), extendedLocation.Value, Optional.ToNullable(etag), Optional.ToList(loadBalancerFrontendIpConfigurations), Optional.ToList(ipConfigurations), Optional.ToList(networkInterfaces), Optional.ToNullable(provisioningState), Optional.ToList(privateEndpointConnections), visibility.Value, autoApproval.Value, Optional.ToList(fqdns), @alias.Value, Optional.ToNullable(enableProxyProtocol)); + return new PrivateLinkServiceData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(location), Optional.ToDictionary(tags), extendedLocation.Value, Optional.ToNullable(etag), Optional.ToList(loadBalancerFrontendIpConfigurations), Optional.ToNullable(resourceGuid), Optional.ToList(ipConfigurations), Optional.ToList(networkInterfaces), Optional.ToNullable(provisioningState), Optional.ToList(privateEndpointConnections), visibility.Value, autoApproval.Value, Optional.ToList(fqdns), @alias.Value, Optional.ToNullable(enableProxyProtocol)); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupData.cs index f19384923fc0..ec55f2f63cbd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupData.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Network { /// A class representing the PrivateDnsZoneGroup data model. - public partial class PrivateDnsZoneGroupData : NetworkResourceData + public partial class PrivateDnsZoneGroupData : NetworkWritableResourceData { /// Initializes a new instance of PrivateDnsZoneGroupData. public PrivateDnsZoneGroupData() diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointData.cs index ebaee086d952..abf05a6fae62 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointData.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using Azure; using Azure.Core; @@ -32,16 +33,18 @@ public PrivateEndpointData() /// Resource tags. /// The extended location of the load balancer. /// A unique read-only string that changes whenever the resource is updated. + /// The resource id of private endpoint. /// The ID of the subnet from which the private IP will be allocated. /// An array of references to the network interfaces created for this private endpoint. /// The provisioning state of the private endpoint resource. /// A grouping of information about the connection to the remote resource. /// A grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource. /// An array of custom dns configurations. - internal PrivateEndpointData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ExtendedLocation extendedLocation, ETag? etag, SubnetData subnet, IReadOnlyList networkInterfaces, NetworkProvisioningState? provisioningState, IList privateLinkServiceConnections, IList manualPrivateLinkServiceConnections, IList customDnsConfigs) : base(id, name, resourceType, location, tags) + internal PrivateEndpointData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ExtendedLocation extendedLocation, ETag? etag, Guid? resourceGuid, SubnetData subnet, IReadOnlyList networkInterfaces, NetworkProvisioningState? provisioningState, IList privateLinkServiceConnections, IList manualPrivateLinkServiceConnections, IList customDnsConfigs) : base(id, name, resourceType, location, tags) { ExtendedLocation = extendedLocation; Etag = etag; + ResourceGuid = resourceGuid; Subnet = subnet; NetworkInterfaces = networkInterfaces; ProvisioningState = provisioningState; @@ -54,6 +57,8 @@ internal PrivateEndpointData(ResourceIdentifier id, string name, ResourceType? r public ExtendedLocation ExtendedLocation { get; set; } /// A unique read-only string that changes whenever the resource is updated. public ETag? Etag { get; } + /// The resource id of private endpoint. + public Guid? ResourceGuid { get; set; } /// The ID of the subnet from which the private IP will be allocated. public SubnetData Subnet { get; set; } /// An array of references to the network interfaces created for this private endpoint. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceData.cs index 43e0f6ee9ba1..708eed25875b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceData.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using Azure; using Azure.Core; @@ -34,6 +35,7 @@ public PrivateLinkServiceData() /// The extended location of the load balancer. /// A unique read-only string that changes whenever the resource is updated. /// An array of references to the load balancer IP configurations. + /// The resource id of private link service. /// An array of private link service IP configurations. /// An array of references to the network interfaces created for this private link service. /// The provisioning state of the private link service resource. @@ -43,11 +45,12 @@ public PrivateLinkServiceData() /// The list of Fqdn. /// The alias of the private link service. /// Whether the private link service is enabled for proxy protocol or not. - internal PrivateLinkServiceData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ExtendedLocation extendedLocation, ETag? etag, IList loadBalancerFrontendIPConfigurations, IList ipConfigurations, IReadOnlyList networkInterfaces, NetworkProvisioningState? provisioningState, IReadOnlyList privateEndpointConnections, PrivateLinkServicePropertiesVisibility visibility, PrivateLinkServicePropertiesAutoApproval autoApproval, IList fqdns, string @alias, bool? enableProxyProtocol) : base(id, name, resourceType, location, tags) + internal PrivateLinkServiceData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ExtendedLocation extendedLocation, ETag? etag, IList loadBalancerFrontendIPConfigurations, Guid? resourceGuid, IList ipConfigurations, IReadOnlyList networkInterfaces, NetworkProvisioningState? provisioningState, IReadOnlyList privateEndpointConnections, PrivateLinkServicePropertiesVisibility visibility, PrivateLinkServicePropertiesAutoApproval autoApproval, IList fqdns, string @alias, bool? enableProxyProtocol) : base(id, name, resourceType, location, tags) { ExtendedLocation = extendedLocation; Etag = etag; LoadBalancerFrontendIPConfigurations = loadBalancerFrontendIPConfigurations; + ResourceGuid = resourceGuid; IPConfigurations = ipConfigurations; NetworkInterfaces = networkInterfaces; ProvisioningState = provisioningState; @@ -65,6 +68,8 @@ internal PrivateLinkServiceData(ResourceIdentifier id, string name, ResourceType public ETag? Etag { get; } /// An array of references to the load balancer IP configurations. public IList LoadBalancerFrontendIPConfigurations { get; } + /// The resource id of private link service. + public Guid? ResourceGuid { get; set; } /// An array of private link service IP configurations. public IList IPConfigurations { get; } /// An array of references to the network interfaces created for this private link service. diff --git a/sdk/network/Azure.ResourceManager.Network/src/autorest.md b/sdk/network/Azure.ResourceManager.Network/src/autorest.md index 9bebbd7a7dc1..15c20186ad17 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/autorest.md +++ b/sdk/network/Azure.ResourceManager.Network/src/autorest.md @@ -6,7 +6,7 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: Network namespace: Azure.ResourceManager.Network -require: https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/readme.md tag: package-track2-preview skip-csproj: true @@ -289,54 +289,54 @@ These settings apply only when `--tag=package-track2-preview` is specified on th ```yaml $(tag) == 'package-track2-preview' input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/applicationGateway.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/applicationSecurityGroup.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/availableDelegations.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/availableServiceAliases.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/azureFirewall.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/azureFirewallFqdnTag.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/azureWebCategory.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/bastionHost.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/checkDnsAvailability.json -# - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/cloudServiceNetworkInterface.json -# - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/cloudServicePublicIpAddress.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/customIpPrefix.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ddosCustomPolicy.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ddosProtectionPlan.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/dscpConfiguration.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/endpointService.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/expressRouteCircuit.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/expressRouteCrossConnection.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/expressRoutePort.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/firewallPolicy.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ipAllocation.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ipGroups.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/loadBalancer.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/natGateway.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/network.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkInterface.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkProfile.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkSecurityGroup.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkVirtualAppliance.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkWatcher.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/operation.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/privateEndpoint.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/privateLinkService.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/publicIpAddress.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/publicIpPrefix.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/routeFilter.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/routeTable.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/securityPartnerProvider.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/serviceCommunity.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/serviceEndpointPolicy.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/serviceTags.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/usage.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualNetwork.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualNetworkGateway.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualNetworkTap.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualRouter.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualWan.json -# - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/vmssNetworkInterface.json -# - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/vmssPublicIpAddress.json - - https://github.com/Azure/azure-rest-api-specs/blob/7384176da46425e7899708f263e0598b851358c2/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/webapplicationfirewall.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/applicationGateway.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/applicationSecurityGroup.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/availableDelegations.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/availableServiceAliases.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/azureFirewall.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/azureFirewallFqdnTag.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/azureWebCategory.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/bastionHost.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/checkDnsAvailability.json +# - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/cloudServiceNetworkInterface.json +# - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/cloudServicePublicIpAddress.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/customIpPrefix.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ddosCustomPolicy.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ddosProtectionPlan.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/dscpConfiguration.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/endpointService.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/expressRouteCircuit.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/expressRouteCrossConnection.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/expressRoutePort.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/firewallPolicy.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ipAllocation.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ipGroups.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/loadBalancer.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/natGateway.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/network.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkInterface.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkProfile.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkSecurityGroup.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkVirtualAppliance.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkWatcher.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/operation.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/privateEndpoint.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/privateLinkService.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/publicIpAddress.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/publicIpPrefix.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/routeFilter.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/routeTable.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/securityPartnerProvider.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/serviceCommunity.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/serviceEndpointPolicy.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/serviceTags.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/usage.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualNetwork.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualNetworkGateway.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualNetworkTap.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualRouter.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualWan.json +# - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/vmssNetworkInterface.json +# - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/vmssPublicIpAddress.json + - https://github.com/Azure/azure-rest-api-specs/blob/4b6cc37a6b947d797562a9bc0fc84177316f9a0a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/webapplicationfirewall.json ```