diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AdminRuleCollectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AdminRuleCollectionsOperations.cs index ce320134da32b..e7cfef2636eb6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AdminRuleCollectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AdminRuleCollectionsOperations.cs @@ -120,7 +120,7 @@ internal AdminRuleCollectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -340,7 +340,7 @@ internal AdminRuleCollectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "ruleCollectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -563,7 +563,7 @@ internal AdminRuleCollectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "ruleCollectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -835,7 +835,7 @@ internal AdminRuleCollectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "ruleCollectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AdminRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AdminRulesOperations.cs index 007c3a08d0cd9..6d3844a880204 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AdminRulesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AdminRulesOperations.cs @@ -126,7 +126,7 @@ internal AdminRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -355,7 +355,7 @@ internal AdminRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "ruleName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -583,7 +583,7 @@ internal AdminRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "ruleName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -867,7 +867,7 @@ internal AdminRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "ruleName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionsOperations.cs index 47dbcfda5b784..4b8ffbf84ea6c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionsOperations.cs @@ -155,7 +155,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations(NetworkManagemen { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations(NetworkManagemen { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -549,7 +549,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations(NetworkManagemen { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -742,7 +742,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations(NetworkManagemen { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateLinkResourcesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateLinkResourcesOperations.cs index f693704804f98..4a4a256ffe835 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateLinkResourcesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateLinkResourcesOperations.cs @@ -94,7 +94,7 @@ internal ApplicationGatewayPrivateLinkResourcesOperations(NetworkManagementClien { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayWafDynamicManifestsDefaultOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayWafDynamicManifestsDefaultOperations.cs index 82c1060cdb004..a168b92b1a133 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayWafDynamicManifestsDefaultOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayWafDynamicManifestsDefaultOperations.cs @@ -87,7 +87,7 @@ internal ApplicationGatewayWafDynamicManifestsDefaultOperations(NetworkManagemen { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayWafDynamicManifestsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayWafDynamicManifestsOperations.cs index ac3c15e322388..7ecb1c00f447a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayWafDynamicManifestsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayWafDynamicManifestsOperations.cs @@ -87,7 +87,7 @@ internal ApplicationGatewayWafDynamicManifestsOperations(NetworkManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewaysOperations.cs index ce9b5496dccc6..5a940167b099e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewaysOperations.cs @@ -116,7 +116,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -342,7 +342,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -536,7 +536,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -714,7 +714,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -991,7 +991,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1162,7 +1162,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1333,7 +1333,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1504,7 +1504,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1680,7 +1680,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1856,7 +1856,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2039,7 +2039,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "predefinedPolicyName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2228,7 +2228,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2415,7 +2415,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2631,7 +2631,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2804,7 +2804,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2985,7 +2985,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3196,7 +3196,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "probeRequest"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationSecurityGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationSecurityGroupsOperations.cs index e132b08d1a0d4..6f7ad0e798fa4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationSecurityGroupsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationSecurityGroupsOperations.cs @@ -116,7 +116,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -343,7 +343,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -530,7 +530,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -713,7 +713,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -902,7 +902,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1086,7 +1086,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableDelegationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableDelegationsOperations.cs index b17af1c1e91da..4b444d26b93d5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableDelegationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableDelegationsOperations.cs @@ -88,7 +88,7 @@ internal AvailableDelegationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableEndpointServicesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableEndpointServicesOperations.cs index 3d055f617de2a..0d8bfdff6852f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableEndpointServicesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableEndpointServicesOperations.cs @@ -87,7 +87,7 @@ internal AvailableEndpointServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailablePrivateEndpointTypesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailablePrivateEndpointTypesOperations.cs index 0dc7a58cff49a..150fc0dd6f70c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailablePrivateEndpointTypesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailablePrivateEndpointTypesOperations.cs @@ -88,7 +88,7 @@ internal AvailablePrivateEndpointTypesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -281,7 +281,7 @@ internal AvailablePrivateEndpointTypesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableResourceGroupDelegationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableResourceGroupDelegationsOperations.cs index 7d2df1fba8989..3569f24e8a8de 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableResourceGroupDelegationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableResourceGroupDelegationsOperations.cs @@ -95,7 +95,7 @@ internal AvailableResourceGroupDelegationsOperations(NetworkManagementClient cli { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableServiceAliasesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableServiceAliasesOperations.cs index b0eb249e213cf..57c121f5d66a6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableServiceAliasesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableServiceAliasesOperations.cs @@ -87,7 +87,7 @@ internal AvailableServiceAliasesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -279,7 +279,7 @@ internal AvailableServiceAliasesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallFqdnTagsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallFqdnTagsOperations.cs index feebf6065ebcc..f8e200e2758b1 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallFqdnTagsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallFqdnTagsOperations.cs @@ -80,7 +80,7 @@ internal AzureFirewallFqdnTagsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperations.cs index 2a9ce57ff7572..4864221c0b284 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperations.cs @@ -116,7 +116,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -353,7 +353,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -531,7 +531,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -700,6 +700,31 @@ internal AzureFirewallsOperations(NetworkManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Runs a packet capture on AzureFirewall. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Azure Firewall. + /// + /// + /// Parameters supplied to run packet capture on azure firewall. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PacketCaptureMethodWithHttpMessagesAsync(string resourceGroupName, string azureFirewallName, FirewallPacketCaptureParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationHeaderResponse _response = await BeginPacketCaptureMethodWithHttpMessagesAsync(resourceGroupName, azureFirewallName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Deletes the specified Azure Firewall. /// @@ -741,7 +766,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -935,7 +960,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1161,7 +1186,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1363,7 +1388,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1513,6 +1538,225 @@ internal AzureFirewallsOperations(NetworkManagementClient client) return _result; } + /// + /// Runs a packet capture on AzureFirewall. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Azure Firewall. + /// + /// + /// Parameters supplied to run packet capture on azure firewall. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginPacketCaptureMethodWithHttpMessagesAsync(string resourceGroupName, string azureFirewallName, FirewallPacketCaptureParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (azureFirewallName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "azureFirewallName"); + } + if (azureFirewallName != null) + { + if (azureFirewallName.Length > 56) + { + throw new ValidationException(ValidationRules.MaxLength, "azureFirewallName", 56); + } + if (azureFirewallName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "azureFirewallName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(azureFirewallName, "^[a-zA-Z0-9]")) + { + throw new ValidationException(ValidationRules.Pattern, "azureFirewallName", "^[a-zA-Z0-9]"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2024-01-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("azureFirewallName", azureFirewallName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPacketCaptureMethod", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/packetCapture").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{azureFirewallName}", System.Uri.EscapeDataString(azureFirewallName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Lists all Azure Firewalls in a resource group. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperationsExtensions.cs index faef77de80b4d..5f9522ef1bfac 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperationsExtensions.cs @@ -294,6 +294,52 @@ public static IPPrefixesList ListLearnedPrefixes(this IAzureFirewallsOperations } } + /// + /// Runs a packet capture on AzureFirewall. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Azure Firewall. + /// + /// + /// Parameters supplied to run packet capture on azure firewall. + /// + public static AzureFirewallsPacketCaptureHeaders PacketCaptureMethod(this IAzureFirewallsOperations operations, string resourceGroupName, string azureFirewallName, FirewallPacketCaptureParameters parameters) + { + return operations.PacketCaptureMethodAsync(resourceGroupName, azureFirewallName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Runs a packet capture on AzureFirewall. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Azure Firewall. + /// + /// + /// Parameters supplied to run packet capture on azure firewall. + /// + /// + /// The cancellation token. + /// + public static async Task PacketCaptureMethodAsync(this IAzureFirewallsOperations operations, string resourceGroupName, string azureFirewallName, FirewallPacketCaptureParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PacketCaptureMethodWithHttpMessagesAsync(resourceGroupName, azureFirewallName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + /// /// Deletes the specified Azure Firewall. /// @@ -465,6 +511,52 @@ public static IPPrefixesList BeginListLearnedPrefixes(this IAzureFirewallsOperat } } + /// + /// Runs a packet capture on AzureFirewall. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Azure Firewall. + /// + /// + /// Parameters supplied to run packet capture on azure firewall. + /// + public static AzureFirewallsPacketCaptureHeaders BeginPacketCaptureMethod(this IAzureFirewallsOperations operations, string resourceGroupName, string azureFirewallName, FirewallPacketCaptureParameters parameters) + { + return operations.BeginPacketCaptureMethodAsync(resourceGroupName, azureFirewallName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Runs a packet capture on AzureFirewall. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Azure Firewall. + /// + /// + /// Parameters supplied to run packet capture on azure firewall. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPacketCaptureMethodAsync(this IAzureFirewallsOperations operations, string resourceGroupName, string azureFirewallName, FirewallPacketCaptureParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginPacketCaptureMethodWithHttpMessagesAsync(resourceGroupName, azureFirewallName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + /// /// Lists all Azure Firewalls in a resource group. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BastionHostsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BastionHostsOperations.cs index add461b351d34..563b955460c2d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BastionHostsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BastionHostsOperations.cs @@ -116,7 +116,7 @@ internal BastionHostsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -346,7 +346,7 @@ internal BastionHostsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -529,7 +529,7 @@ internal BastionHostsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -718,7 +718,7 @@ internal BastionHostsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -905,7 +905,7 @@ internal BastionHostsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1131,7 +1131,7 @@ internal BastionHostsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BgpServiceCommunitiesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BgpServiceCommunitiesOperations.cs index c31d4ee24a5c9..a4e6e478ca435 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BgpServiceCommunitiesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BgpServiceCommunitiesOperations.cs @@ -80,7 +80,7 @@ internal BgpServiceCommunitiesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConfigurationPolicyGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConfigurationPolicyGroupsOperations.cs index f381c8c60e2c4..4668b908197ae 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConfigurationPolicyGroupsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConfigurationPolicyGroupsOperations.cs @@ -156,7 +156,7 @@ internal ConfigurationPolicyGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "configurationPolicyGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -353,7 +353,7 @@ internal ConfigurationPolicyGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnServerConfigurationName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -563,7 +563,7 @@ internal ConfigurationPolicyGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnServerConfigurationPolicyGroupParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -788,7 +788,7 @@ internal ConfigurationPolicyGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "configurationPolicyGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs index ccf921155b5ab..38de42304a187 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs @@ -133,7 +133,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -363,7 +363,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -636,7 +636,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -847,7 +847,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1072,7 +1072,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1249,7 +1249,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1426,7 +1426,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1606,7 +1606,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectivityConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectivityConfigurationsOperations.cs index 4c5bcc91dbb6f..2975eeb2fc470 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectivityConfigurationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectivityConfigurationsOperations.cs @@ -102,7 +102,7 @@ internal ConnectivityConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "configurationName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -317,7 +317,7 @@ internal ConnectivityConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "configurationName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -588,7 +588,7 @@ internal ConnectivityConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -802,7 +802,7 @@ internal ConnectivityConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "configurationName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/CustomIPPrefixesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/CustomIPPrefixesOperations.cs index 469606c6834b0..fd78fa07b6750 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/CustomIPPrefixesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/CustomIPPrefixesOperations.cs @@ -119,7 +119,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -720,7 +720,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -909,7 +909,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1092,7 +1092,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperations.cs index 28b3142f9b980..524405466ac9d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperations.cs @@ -65,10 +65,10 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string ddosCustomPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string ddosCustomPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, ddosCustomPolicyName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationHeaderResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, ddosCustomPolicyName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -116,7 +116,7 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -342,7 +342,7 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -526,7 +526,7 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string ddosCustomPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string ddosCustomPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -540,7 +540,7 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -658,13 +658,26 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationHeaderResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -723,7 +736,7 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperationsExtensions.cs index 0ecaf59139195..6159b5bf3fa33 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperationsExtensions.cs @@ -33,9 +33,9 @@ public static partial class DdosCustomPoliciesOperationsExtensions /// /// The name of the DDoS custom policy. /// - public static void Delete(this IDdosCustomPoliciesOperations operations, string resourceGroupName, string ddosCustomPolicyName) + public static DdosCustomPoliciesDeleteHeaders Delete(this IDdosCustomPoliciesOperations operations, string resourceGroupName, string ddosCustomPolicyName) { - operations.DeleteAsync(resourceGroupName, ddosCustomPolicyName).GetAwaiter().GetResult(); + return operations.DeleteAsync(resourceGroupName, ddosCustomPolicyName).GetAwaiter().GetResult(); } /// @@ -53,9 +53,12 @@ public static void Delete(this IDdosCustomPoliciesOperations operations, string /// /// The cancellation token. /// - public static async Task DeleteAsync(this IDdosCustomPoliciesOperations operations, string resourceGroupName, string ddosCustomPolicyName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IDdosCustomPoliciesOperations operations, string resourceGroupName, string ddosCustomPolicyName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, ddosCustomPolicyName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, ddosCustomPolicyName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } } /// @@ -202,9 +205,9 @@ public static DdosCustomPolicy UpdateTags(this IDdosCustomPoliciesOperations ope /// /// The name of the DDoS custom policy. /// - public static void BeginDelete(this IDdosCustomPoliciesOperations operations, string resourceGroupName, string ddosCustomPolicyName) + public static DdosCustomPoliciesDeleteHeaders BeginDelete(this IDdosCustomPoliciesOperations operations, string resourceGroupName, string ddosCustomPolicyName) { - operations.BeginDeleteAsync(resourceGroupName, ddosCustomPolicyName).GetAwaiter().GetResult(); + return operations.BeginDeleteAsync(resourceGroupName, ddosCustomPolicyName).GetAwaiter().GetResult(); } /// @@ -222,9 +225,12 @@ public static void BeginDelete(this IDdosCustomPoliciesOperations operations, st /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IDdosCustomPoliciesOperations operations, string resourceGroupName, string ddosCustomPolicyName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IDdosCustomPoliciesOperations operations, string resourceGroupName, string ddosCustomPolicyName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, ddosCustomPolicyName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, ddosCustomPolicyName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } } /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosProtectionPlansOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosProtectionPlansOperations.cs index 2b52101572cf1..7fb1eb67c164c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosProtectionPlansOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosProtectionPlansOperations.cs @@ -116,7 +116,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -342,7 +342,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -529,7 +529,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -712,7 +712,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -901,7 +901,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1097,7 +1097,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DefaultSecurityRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DefaultSecurityRulesOperations.cs index c114b5e39ee96..e05abaa5bde2c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DefaultSecurityRulesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DefaultSecurityRulesOperations.cs @@ -94,7 +94,7 @@ internal DefaultSecurityRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -295,7 +295,7 @@ internal DefaultSecurityRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DscpConfigurationOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DscpConfigurationOperations.cs index 9003629be702a..b1be88f534d7a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DscpConfigurationOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DscpConfigurationOperations.cs @@ -141,7 +141,7 @@ internal DscpConfigurationOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -328,7 +328,7 @@ internal DscpConfigurationOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -506,7 +506,7 @@ internal DscpConfigurationOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -703,7 +703,7 @@ internal DscpConfigurationOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -919,7 +919,7 @@ internal DscpConfigurationOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitAuthorizationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitAuthorizationsOperations.cs index f7aba209b33f4..fb35a4cfbd076 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitAuthorizationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitAuthorizationsOperations.cs @@ -127,7 +127,7 @@ internal ExpressRouteCircuitAuthorizationsOperations(NetworkManagementClient cli { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -352,7 +352,7 @@ internal ExpressRouteCircuitAuthorizationsOperations(NetworkManagementClient cli { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -551,7 +551,7 @@ internal ExpressRouteCircuitAuthorizationsOperations(NetworkManagementClient cli { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -744,7 +744,7 @@ internal ExpressRouteCircuitAuthorizationsOperations(NetworkManagementClient cli { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitConnectionsOperations.cs index ec1d3986f81fb..401fa58aa42dd 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitConnectionsOperations.cs @@ -138,7 +138,7 @@ internal ExpressRouteCircuitConnectionsOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -377,7 +377,7 @@ internal ExpressRouteCircuitConnectionsOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -585,7 +585,7 @@ internal ExpressRouteCircuitConnectionsOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -788,7 +788,7 @@ internal ExpressRouteCircuitConnectionsOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitPeeringsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitPeeringsOperations.cs index 16d0a2f702798..9d9abd2655004 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitPeeringsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitPeeringsOperations.cs @@ -126,7 +126,7 @@ internal ExpressRouteCircuitPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal ExpressRouteCircuitPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -549,7 +549,7 @@ internal ExpressRouteCircuitPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -746,7 +746,7 @@ internal ExpressRouteCircuitPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitsOperations.cs index 2e4cbea3e1160..7411ccf05c347 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitsOperations.cs @@ -116,7 +116,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -343,7 +343,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -631,7 +631,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -832,7 +832,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1021,7 +1021,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1199,7 +1199,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1386,7 +1386,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1570,7 +1570,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1804,7 +1804,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2017,7 +2017,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2230,7 +2230,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteConnectionsOperations.cs index 294ec2a0b94b0..725de9f9b5a85 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteConnectionsOperations.cs @@ -130,7 +130,7 @@ internal ExpressRouteConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal ExpressRouteConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -564,7 +564,7 @@ internal ExpressRouteConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -789,7 +789,7 @@ internal ExpressRouteConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionPeeringsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionPeeringsOperations.cs index 4d0588f8387aa..bd2f09b3baa94 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionPeeringsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionPeeringsOperations.cs @@ -94,7 +94,7 @@ internal ExpressRouteCrossConnectionPeeringsOperations(NetworkManagementClient c { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -320,7 +320,7 @@ internal ExpressRouteCrossConnectionPeeringsOperations(NetworkManagementClient c { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -549,7 +549,7 @@ internal ExpressRouteCrossConnectionPeeringsOperations(NetworkManagementClient c { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -746,7 +746,7 @@ internal ExpressRouteCrossConnectionPeeringsOperations(NetworkManagementClient c { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperations.cs index b500bedd3120c..9a4d80e6d8dfa 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperations.cs @@ -53,6 +53,10 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) /// /// Retrieves all the ExpressRouteCrossConnections in a subscription. /// + /// + /// The filter to apply on the operation. For example, you can use $filter=name + /// eq '{circuitServiceKey}'. + /// /// /// Headers that will be added to request. /// @@ -74,13 +78,13 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -89,6 +93,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } @@ -101,6 +106,10 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -263,7 +272,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -455,7 +464,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -681,7 +690,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -976,7 +985,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1192,7 +1201,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1405,7 +1414,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1618,7 +1627,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperationsExtensions.cs index d977722d61c45..032bff4b16009 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperationsExtensions.cs @@ -27,9 +27,13 @@ public static partial class ExpressRouteCrossConnectionsOperationsExtensions /// /// The operations group for this extension method. /// - public static IPage List(this IExpressRouteCrossConnectionsOperations operations) + /// + /// The filter to apply on the operation. For example, you can use $filter=name + /// eq '{circuitServiceKey}'. + /// + public static IPage List(this IExpressRouteCrossConnectionsOperations operations, string filter = default(string)) { - return operations.ListAsync().GetAwaiter().GetResult(); + return operations.ListAsync(filter).GetAwaiter().GetResult(); } /// @@ -38,12 +42,16 @@ public static IPage List(this IExpressRouteCrossCon /// /// The operations group for this extension method. /// + /// + /// The filter to apply on the operation. For example, you can use $filter=name + /// eq '{circuitServiceKey}'. + /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IExpressRouteCrossConnectionsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IExpressRouteCrossConnectionsOperations operations, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperations.cs index 1caefc1aa89fd..9fab5492c8c3b 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperations.cs @@ -80,7 +80,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -263,7 +263,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -505,7 +505,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -734,7 +734,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -960,7 +960,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "expressRouteGatewayParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1160,7 +1160,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteLinksOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteLinksOperations.cs index 82dcb1bf50289..72bbbe0f2175b 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteLinksOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteLinksOperations.cs @@ -101,7 +101,7 @@ internal ExpressRouteLinksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "linkName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -298,7 +298,7 @@ internal ExpressRouteLinksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "expressRoutePortName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortAuthorizationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortAuthorizationsOperations.cs index 9cb1c7d4fbb4f..1c5a000c65d7d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortAuthorizationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortAuthorizationsOperations.cs @@ -126,7 +126,7 @@ internal ExpressRoutePortAuthorizationsOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal ExpressRoutePortAuthorizationsOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -549,7 +549,7 @@ internal ExpressRoutePortAuthorizationsOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -742,7 +742,7 @@ internal ExpressRoutePortAuthorizationsOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsLocationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsLocationsOperations.cs index 76fb2fe1b4ff0..7109f1e6c498c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsLocationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsLocationsOperations.cs @@ -82,7 +82,7 @@ internal ExpressRoutePortsLocationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -266,7 +266,7 @@ internal ExpressRoutePortsLocationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsOperations.cs index c7e7173587530..eee45c8b81b55 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsOperations.cs @@ -116,7 +116,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "expressRoutePortName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -342,7 +342,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -536,7 +536,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -714,7 +714,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -916,7 +916,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { request.Validate(); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1114,7 +1114,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "expressRoutePortName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1297,7 +1297,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteProviderPortsLocationOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteProviderPortsLocationOperations.cs index 241b3d4ca37a8..10721c47109c4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteProviderPortsLocationOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteProviderPortsLocationOperations.cs @@ -84,7 +84,7 @@ internal ExpressRouteProviderPortsLocationOperations(NetworkManagementClient cli { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteServiceProvidersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteServiceProvidersOperations.cs index 74531cfd31978..b0c0d09023c73 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteServiceProvidersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteServiceProvidersOperations.cs @@ -80,7 +80,7 @@ internal ExpressRouteServiceProvidersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs index 3131eb1d06fee..37faaf0d66947 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs @@ -119,7 +119,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -544,7 +544,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -722,7 +722,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -909,7 +909,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1096,7 +1096,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDeploymentsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDeploymentsOperations.cs new file mode 100644 index 0000000000000..a9a9e35f8562a --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDeploymentsOperations.cs @@ -0,0 +1,269 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FirewallPolicyDeploymentsOperations operations. + /// + internal partial class FirewallPolicyDeploymentsOperations : IServiceOperations, IFirewallPolicyDeploymentsOperations + { + /// + /// Initializes a new instance of the FirewallPolicyDeploymentsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal FirewallPolicyDeploymentsOperations(NetworkManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the NetworkManagementClient + /// + public NetworkManagementClient Client { get; private set; } + + /// + /// Deploys the firewall policy draft and child rule collection group drafts. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> DeployWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationHeaderResponse _response = await BeginDeployWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deploys the firewall policy draft and child rule collection group drafts. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginDeployWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (firewallPolicyName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(firewallPolicyName, "^[^_\\W][\\w-._]{0,79}(? tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeploy", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/deploy").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDeploymentsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDeploymentsOperationsExtensions.cs new file mode 100644 index 0000000000000..bdf94dee5faf8 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDeploymentsOperationsExtensions.cs @@ -0,0 +1,105 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for FirewallPolicyDeploymentsOperations. + /// + public static partial class FirewallPolicyDeploymentsOperationsExtensions + { + /// + /// Deploys the firewall policy draft and child rule collection group drafts. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + public static FirewallPolicyDeploymentsDeployHeaders Deploy(this IFirewallPolicyDeploymentsOperations operations, string resourceGroupName, string firewallPolicyName) + { + return operations.DeployAsync(resourceGroupName, firewallPolicyName).GetAwaiter().GetResult(); + } + + /// + /// Deploys the firewall policy draft and child rule collection group drafts. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The cancellation token. + /// + public static async Task DeployAsync(this IFirewallPolicyDeploymentsOperations operations, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeployWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Deploys the firewall policy draft and child rule collection group drafts. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + public static FirewallPolicyDeploymentsDeployHeaders BeginDeploy(this IFirewallPolicyDeploymentsOperations operations, string resourceGroupName, string firewallPolicyName) + { + return operations.BeginDeployAsync(resourceGroupName, firewallPolicyName).GetAwaiter().GetResult(); + } + + /// + /// Deploys the firewall policy draft and child rule collection group drafts. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeployAsync(this IFirewallPolicyDeploymentsOperations operations, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginDeployWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDraftsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDraftsOperations.cs new file mode 100644 index 0000000000000..9ae08cd394f36 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDraftsOperations.cs @@ -0,0 +1,673 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FirewallPolicyDraftsOperations operations. + /// + internal partial class FirewallPolicyDraftsOperations : IServiceOperations, IFirewallPolicyDraftsOperations + { + /// + /// Initializes a new instance of the FirewallPolicyDraftsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal FirewallPolicyDraftsOperations(NetworkManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the NetworkManagementClient + /// + public NetworkManagementClient Client { get; private set; } + + /// + /// Create or update a draft Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy Draft + /// operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, FirewallPolicyDraft parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (firewallPolicyName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(firewallPolicyName, "^[^_\\W][\\w-._]{0,79}(? tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/firewallPolicyDrafts/default").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a draft policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (firewallPolicyName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(firewallPolicyName, "^[^_\\W][\\w-._]{0,79}(? tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/firewallPolicyDrafts/default").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a draft Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (firewallPolicyName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(firewallPolicyName, "^[^_\\W][\\w-._]{0,79}(? tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/firewallPolicyDrafts/default").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDraftsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDraftsOperationsExtensions.cs new file mode 100644 index 0000000000000..e6e7f30282919 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyDraftsOperationsExtensions.cs @@ -0,0 +1,150 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for FirewallPolicyDraftsOperations. + /// + public static partial class FirewallPolicyDraftsOperationsExtensions + { + /// + /// Create or update a draft Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy Draft + /// operation. + /// + public static FirewallPolicyDraft CreateOrUpdate(this IFirewallPolicyDraftsOperations operations, string resourceGroupName, string firewallPolicyName, FirewallPolicyDraft parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, firewallPolicyName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create or update a draft Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy Draft + /// operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IFirewallPolicyDraftsOperations operations, string resourceGroupName, string firewallPolicyName, FirewallPolicyDraft parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a draft policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + public static void Delete(this IFirewallPolicyDraftsOperations operations, string resourceGroupName, string firewallPolicyName) + { + operations.DeleteAsync(resourceGroupName, firewallPolicyName).GetAwaiter().GetResult(); + } + + /// + /// Delete a draft policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IFirewallPolicyDraftsOperations operations, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Get a draft Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + public static FirewallPolicyDraft Get(this IFirewallPolicyDraftsOperations operations, string resourceGroupName, string firewallPolicyName) + { + return operations.GetAsync(resourceGroupName, firewallPolicyName).GetAwaiter().GetResult(); + } + + /// + /// Get a draft Firewall Policy. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IFirewallPolicyDraftsOperations operations, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesFilterValuesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesFilterValuesOperations.cs index ec92e87bfd373..ad2409b5ced0a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesFilterValuesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesFilterValuesOperations.cs @@ -100,7 +100,7 @@ internal FirewallPolicyIdpsSignaturesFilterValuesOperations(NetworkManagementCli { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperations.cs index 82438005ecd0f..3fa25f65c9fd7 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperations.cs @@ -51,7 +51,8 @@ internal FirewallPolicyIdpsSignaturesOperations(NetworkManagementClient client) public NetworkManagementClient Client { get; private set; } /// - /// Retrieves the current status of IDPS signatures for the relevant policy + /// Retrieves the current status of IDPS signatures for the relevant policy. + /// Maximal amount of returned signatures is 1000. /// /// /// The name of the resource group. @@ -104,7 +105,7 @@ internal FirewallPolicyIdpsSignaturesOperations(NetworkManagementClient client) { parameters.Validate(); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperationsExtensions.cs index 368ac1e2a8616..f3fbaaca487a0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperationsExtensions.cs @@ -22,7 +22,8 @@ namespace Microsoft.Azure.Management.Network public static partial class FirewallPolicyIdpsSignaturesOperationsExtensions { /// - /// Retrieves the current status of IDPS signatures for the relevant policy + /// Retrieves the current status of IDPS signatures for the relevant policy. + /// Maximal amount of returned signatures is 1000. /// /// /// The operations group for this extension method. @@ -41,7 +42,8 @@ public static QueryResults List(this IFirewallPolicyIdpsSignaturesOperations ope } /// - /// Retrieves the current status of IDPS signatures for the relevant policy + /// Retrieves the current status of IDPS signatures for the relevant policy. + /// Maximal amount of returned signatures is 1000. /// /// /// The operations group for this extension method. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOverridesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOverridesOperations.cs index d84bd0b0b56a7..f7b45781449ef 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOverridesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOverridesOperations.cs @@ -101,7 +101,7 @@ internal FirewallPolicyIdpsSignaturesOverridesOperations(NetworkManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -309,7 +309,7 @@ internal FirewallPolicyIdpsSignaturesOverridesOperations(NetworkManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -510,7 +510,7 @@ internal FirewallPolicyIdpsSignaturesOverridesOperations(NetworkManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -705,7 +705,7 @@ internal FirewallPolicyIdpsSignaturesOverridesOperations(NetworkManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftsOperations.cs new file mode 100644 index 0000000000000..2a6dc632d9396 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftsOperations.cs @@ -0,0 +1,721 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FirewallPolicyRuleCollectionGroupDraftsOperations operations. + /// + internal partial class FirewallPolicyRuleCollectionGroupDraftsOperations : IServiceOperations, IFirewallPolicyRuleCollectionGroupDraftsOperations + { + /// + /// Initializes a new instance of the FirewallPolicyRuleCollectionGroupDraftsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal FirewallPolicyRuleCollectionGroupDraftsOperations(NetworkManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the NetworkManagementClient + /// + public NetworkManagementClient Client { get; private set; } + + /// + /// Delete Rule Collection Group Draft. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (firewallPolicyName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(firewallPolicyName, "^[^_\\W][\\w-._]{0,79}(? tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("ruleCollectionGroupName", ruleCollectionGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}/ruleCollectionGroupDrafts/default").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{ruleCollectionGroupName}", System.Uri.EscapeDataString(ruleCollectionGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or Update Rule Collection Group Draft. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + /// + /// Parameters supplied to the create or update + /// FirewallPolicyRuleCollectionGroup operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupDraft parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (firewallPolicyName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(firewallPolicyName, "^[^_\\W][\\w-._]{0,79}(? tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("ruleCollectionGroupName", ruleCollectionGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}/ruleCollectionGroupDrafts/default").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{ruleCollectionGroupName}", System.Uri.EscapeDataString(ruleCollectionGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get Rule Collection Group Draft. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (firewallPolicyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName"); + } + if (firewallPolicyName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(firewallPolicyName, "^[^_\\W][\\w-._]{0,79}(? tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("firewallPolicyName", firewallPolicyName); + tracingParameters.Add("ruleCollectionGroupName", ruleCollectionGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}/ruleCollectionGroupDrafts/default").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName)); + _url = _url.Replace("{ruleCollectionGroupName}", System.Uri.EscapeDataString(ruleCollectionGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftsOperationsExtensions.cs new file mode 100644 index 0000000000000..7eb0299a1516f --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftsOperationsExtensions.cs @@ -0,0 +1,168 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for FirewallPolicyRuleCollectionGroupDraftsOperations. + /// + public static partial class FirewallPolicyRuleCollectionGroupDraftsOperationsExtensions + { + /// + /// Delete Rule Collection Group Draft. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + public static void Delete(this IFirewallPolicyRuleCollectionGroupDraftsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName) + { + operations.DeleteAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName).GetAwaiter().GetResult(); + } + + /// + /// Delete Rule Collection Group Draft. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IFirewallPolicyRuleCollectionGroupDraftsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create or Update Rule Collection Group Draft. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + /// + /// Parameters supplied to the create or update + /// FirewallPolicyRuleCollectionGroup operation. + /// + public static FirewallPolicyRuleCollectionGroupDraft CreateOrUpdate(this IFirewallPolicyRuleCollectionGroupDraftsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupDraft parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create or Update Rule Collection Group Draft. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + /// + /// Parameters supplied to the create or update + /// FirewallPolicyRuleCollectionGroup operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IFirewallPolicyRuleCollectionGroupDraftsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupDraft parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get Rule Collection Group Draft. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + public static FirewallPolicyRuleCollectionGroupDraft Get(this IFirewallPolicyRuleCollectionGroupDraftsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName) + { + return operations.GetAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName).GetAwaiter().GetResult(); + } + + /// + /// Get Rule Collection Group Draft. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IFirewallPolicyRuleCollectionGroupDraftsOperations operations, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupsOperations.cs index 45d924eaef8c8..08068bb112991 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupsOperations.cs @@ -126,7 +126,7 @@ internal FirewallPolicyRuleCollectionGroupsOperations(NetworkManagementClient cl { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal FirewallPolicyRuleCollectionGroupsOperations(NetworkManagementClient cl { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -549,7 +549,7 @@ internal FirewallPolicyRuleCollectionGroupsOperations(NetworkManagementClient cl { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -746,7 +746,7 @@ internal FirewallPolicyRuleCollectionGroupsOperations(NetworkManagementClient cl { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FlowLogsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FlowLogsOperations.cs index e09cb74e1c192..ea61f4a6d43d9 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FlowLogsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FlowLogsOperations.cs @@ -136,7 +136,7 @@ internal FlowLogsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -341,7 +341,7 @@ internal FlowLogsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -557,7 +557,7 @@ internal FlowLogsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -764,7 +764,7 @@ internal FlowLogsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -984,7 +984,7 @@ internal FlowLogsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubRouteTablesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubRouteTablesOperations.cs index 1523864287f56..3805baf7b0e60 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubRouteTablesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubRouteTablesOperations.cs @@ -130,7 +130,7 @@ internal HubRouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routeTableName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal HubRouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -560,7 +560,7 @@ internal HubRouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routeTableParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -785,7 +785,7 @@ internal HubRouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routeTableName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs index b9e426a47efa9..7842c3fa30e1c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs @@ -155,7 +155,7 @@ internal HubVirtualNetworkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal HubVirtualNetworkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -560,7 +560,7 @@ internal HubVirtualNetworkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "hubVirtualNetworkConnectionParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -785,7 +785,7 @@ internal HubVirtualNetworkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IAzureFirewallsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IAzureFirewallsOperations.cs index 097aaff28b66b..5d7bbf1f7f9ba 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IAzureFirewallsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IAzureFirewallsOperations.cs @@ -195,6 +195,31 @@ public partial interface IAzureFirewallsOperations /// Task> ListLearnedPrefixesWithHttpMessagesAsync(string resourceGroupName, string azureFirewallName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Runs a packet capture on AzureFirewall. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Azure Firewall. + /// + /// + /// Parameters supplied to run packet capture on azure firewall. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> PacketCaptureMethodWithHttpMessagesAsync(string resourceGroupName, string azureFirewallName, FirewallPacketCaptureParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Deletes the specified Azure Firewall. /// /// @@ -300,6 +325,31 @@ public partial interface IAzureFirewallsOperations /// Task> BeginListLearnedPrefixesWithHttpMessagesAsync(string resourceGroupName, string azureFirewallName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Runs a packet capture on AzureFirewall. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Azure Firewall. + /// + /// + /// Parameters supplied to run packet capture on azure firewall. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginPacketCaptureMethodWithHttpMessagesAsync(string resourceGroupName, string azureFirewallName, FirewallPacketCaptureParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Lists all Azure Firewalls in a resource group. /// /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IDdosCustomPoliciesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IDdosCustomPoliciesOperations.cs index 84b538b06882c..01792ba32d56a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IDdosCustomPoliciesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IDdosCustomPoliciesOperations.cs @@ -44,7 +44,7 @@ public partial interface IDdosCustomPoliciesOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string ddosCustomPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string ddosCustomPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets information about the specified DDoS custom policy. /// @@ -147,7 +147,7 @@ public partial interface IDdosCustomPoliciesOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string ddosCustomPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string ddosCustomPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates or updates a DDoS custom policy. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IExpressRouteCrossConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IExpressRouteCrossConnectionsOperations.cs index fe3c7278fe278..50c468b619a92 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IExpressRouteCrossConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IExpressRouteCrossConnectionsOperations.cs @@ -26,6 +26,10 @@ public partial interface IExpressRouteCrossConnectionsOperations /// /// Retrieves all the ExpressRouteCrossConnections in a subscription. /// + /// + /// The filter to apply on the operation. For example, you can use + /// $filter=name eq '{circuitServiceKey}'. + /// /// /// The headers that will be added to request. /// @@ -41,7 +45,7 @@ public partial interface IExpressRouteCrossConnectionsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieves all the ExpressRouteCrossConnections in a resource group. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyDeploymentsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyDeploymentsOperations.cs new file mode 100644 index 0000000000000..7bb6f891cb877 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyDeploymentsOperations.cs @@ -0,0 +1,73 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FirewallPolicyDeploymentsOperations operations. + /// + public partial interface IFirewallPolicyDeploymentsOperations + { + /// + /// Deploys the firewall policy draft and child rule collection group + /// drafts. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeployWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deploys the firewall policy draft and child rule collection group + /// drafts. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginDeployWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyDraftsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyDraftsOperations.cs new file mode 100644 index 0000000000000..f6997214677b7 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyDraftsOperations.cs @@ -0,0 +1,103 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FirewallPolicyDraftsOperations operations. + /// + public partial interface IFirewallPolicyDraftsOperations + { + /// + /// Create or update a draft Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// Parameters supplied to the create or update Firewall Policy Draft + /// operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, FirewallPolicyDraft parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a draft policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a draft Firewall Policy. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesOperations.cs index 9e13371729599..f2bfabfff79fa 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesOperations.cs @@ -25,7 +25,7 @@ public partial interface IFirewallPolicyIdpsSignaturesOperations { /// /// Retrieves the current status of IDPS signatures for the relevant - /// policy + /// policy. Maximal amount of returned signatures is 1000. /// /// /// The name of the resource group. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyRuleCollectionGroupDraftsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyRuleCollectionGroupDraftsOperations.cs new file mode 100644 index 0000000000000..b5cd510fe0cc0 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyRuleCollectionGroupDraftsOperations.cs @@ -0,0 +1,112 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FirewallPolicyRuleCollectionGroupDraftsOperations operations. + /// + public partial interface IFirewallPolicyRuleCollectionGroupDraftsOperations + { + /// + /// Delete Rule Collection Group Draft. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or Update Rule Collection Group Draft. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + /// + /// Parameters supplied to the create or update + /// FirewallPolicyRuleCollectionGroup operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupDraft parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get Rule Collection Group Draft. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Firewall Policy. + /// + /// + /// The name of the FirewallPolicyRuleCollectionGroup. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IInboundSecurityRuleOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IInboundSecurityRuleOperations.cs index dacb7f8e235ea..294e27b21baab 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IInboundSecurityRuleOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IInboundSecurityRuleOperations.cs @@ -57,6 +57,35 @@ public partial interface IInboundSecurityRuleOperations /// Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string ruleCollectionName, InboundSecurityRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Retrieves the available specified Network Virtual Appliance Inbound + /// Security Rules Collection. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of security rule collection. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string ruleCollectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Creates or updates the specified Network Virtual Appliance Inbound /// Security Rules. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ILoadBalancersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ILoadBalancersOperations.cs index b04a893103e81..f8830636dcc2e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ILoadBalancersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ILoadBalancersOperations.cs @@ -225,6 +225,34 @@ public partial interface ILoadBalancersOperations /// Task> ListInboundNatRulePortMappingsWithHttpMessagesAsync(string groupName, string loadBalancerName, string backendPoolName, QueryInboundNatRulePortMappingRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Migrate load balancer to IP Based + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the load balancer. + /// + /// + /// Parameters supplied to the migrateToIpBased Api. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> MigrateToIpBasedWithHttpMessagesAsync(string groupName, string loadBalancerName, MigrateLoadBalancerToIpBasedRequest parameters = default(MigrateLoadBalancerToIpBasedRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Deletes the specified load balancer. /// /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs index a7a1cb90fe748..23352a7933bf6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs @@ -270,6 +270,21 @@ public partial interface INetworkManagementClient : System.IDisposable /// IFirewallPolicyIdpsSignaturesFilterValuesOperations FirewallPolicyIdpsSignaturesFilterValues { get; } + /// + /// Gets the IFirewallPolicyDraftsOperations. + /// + IFirewallPolicyDraftsOperations FirewallPolicyDrafts { get; } + + /// + /// Gets the IFirewallPolicyDeploymentsOperations. + /// + IFirewallPolicyDeploymentsOperations FirewallPolicyDeployments { get; } + + /// + /// Gets the IFirewallPolicyRuleCollectionGroupDraftsOperations. + /// + IFirewallPolicyRuleCollectionGroupDraftsOperations FirewallPolicyRuleCollectionGroupDrafts { get; } + /// /// Gets the IIpAllocationsOperations. /// @@ -700,6 +715,11 @@ public partial interface INetworkManagementClient : System.IDisposable /// IExpressRouteConnectionsOperations ExpressRouteConnections { get; } + /// + /// Gets the INetworkVirtualApplianceConnectionsOperations. + /// + INetworkVirtualApplianceConnectionsOperations NetworkVirtualApplianceConnections { get; } + /// /// Gets the IVirtualHubBgpConnectionOperations. /// @@ -741,7 +761,8 @@ public partial interface INetworkManagementClient : System.IDisposable /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link + /// endpoints. /// /// /// The headers that will be added to request. @@ -762,7 +783,8 @@ public partial interface INetworkManagementClient : System.IDisposable /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link + /// endpoints. /// /// /// The headers that will be added to request. @@ -772,6 +794,27 @@ public partial interface INetworkManagementClient : System.IDisposable /// Task DeleteBastionShareableLinkWithHttpMessagesAsync(string resourceGroupName, string bastionHostName, BastionShareableLinkListRequest bslRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the Bastion Shareable Links for all the tokens specified in + /// the request. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Bastion Host. + /// + /// + /// Post request for Delete Bastion Shareable Link By Token endpoint. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task> DeleteBastionShareableLinkByTokenWithHttpMessagesAsync(string resourceGroupName, string bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Return the Bastion Shareable Links for all the VMs specified in the /// request. @@ -783,7 +826,8 @@ public partial interface INetworkManagementClient : System.IDisposable /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link + /// endpoints. /// /// /// The headers that will be added to request. @@ -1014,7 +1058,8 @@ public partial interface INetworkManagementClient : System.IDisposable /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link + /// endpoints. /// /// /// The headers that will be added to request. @@ -1035,7 +1080,8 @@ public partial interface INetworkManagementClient : System.IDisposable /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link + /// endpoints. /// /// /// The headers that will be added to request. @@ -1045,6 +1091,27 @@ public partial interface INetworkManagementClient : System.IDisposable /// Task BeginDeleteBastionShareableLinkWithHttpMessagesAsync(string resourceGroupName, string bastionHostName, BastionShareableLinkListRequest bslRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the Bastion Shareable Links for all the tokens specified in + /// the request. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Bastion Host. + /// + /// + /// Post request for Delete Bastion Shareable Link By Token endpoint. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task> BeginDeleteBastionShareableLinkByTokenWithHttpMessagesAsync(string resourceGroupName, string bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Returns the list of currently active sessions on the Bastion. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkVirtualApplianceConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkVirtualApplianceConnectionsOperations.cs new file mode 100644 index 0000000000000..718718b65724d --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkVirtualApplianceConnectionsOperations.cs @@ -0,0 +1,218 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// NetworkVirtualApplianceConnectionsOperations operations. + /// + public partial interface INetworkVirtualApplianceConnectionsOperations + { + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't + /// exist else updates the existing NVA connection' + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT + /// operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnection networkVirtualApplianceConnectionParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves the details of specified NVA connection. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a NVA connection. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't + /// exist else updates the existing NVA connection' + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT + /// operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnection networkVirtualApplianceConnectionParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a NVA connection. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkVirtualAppliancesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkVirtualAppliancesOperations.cs index 123820e94d30a..df5cfaceb4c92 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkVirtualAppliancesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkVirtualAppliancesOperations.cs @@ -44,7 +44,7 @@ public partial interface INetworkVirtualAppliancesOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the specified Network Virtual Appliance. /// @@ -129,7 +129,37 @@ public partial interface INetworkVirtualAppliancesOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualAppliance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualAppliance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Restarts one or more VMs belonging to the specified Network Virtual + /// Appliance. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of Network Virtual Appliance. + /// + /// + /// Specifies a list of virtual machine instance IDs from the Network + /// Virtual Appliance VM instances. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> RestartWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default(NetworkVirtualApplianceInstanceIds), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all Network Virtual Appliances in a resource group. /// @@ -192,7 +222,7 @@ public partial interface INetworkVirtualAppliancesOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates or updates the specified Network Virtual Appliance. /// @@ -221,7 +251,37 @@ public partial interface INetworkVirtualAppliancesOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualAppliance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualAppliance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Restarts one or more VMs belonging to the specified Network Virtual + /// Appliance. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of Network Virtual Appliance. + /// + /// + /// Specifies a list of virtual machine instance IDs from the Network + /// Virtual Appliance VM instances. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginRestartWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default(NetworkVirtualApplianceInstanceIds), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all Network Virtual Appliances in a resource group. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPublicIpAddressesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPublicIPAddressesOperations.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPublicIpAddressesOperations.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPublicIPAddressesOperations.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualHubBgpConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualHubBgpConnectionsOperations.cs index d4b5f03b8d595..4b5160eb61037 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualHubBgpConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualHubBgpConnectionsOperations.cs @@ -76,7 +76,7 @@ public partial interface IVirtualHubBgpConnectionsOperations /// /// Thrown when a required parameter is null /// - Task> ListLearnedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>>> ListLearnedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieves a list of routes the virtual hub bgp connection is /// advertising to the specified peer. @@ -105,7 +105,7 @@ public partial interface IVirtualHubBgpConnectionsOperations /// /// Thrown when a required parameter is null /// - Task> ListAdvertisedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>>> ListAdvertisedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieves a list of routes the virtual hub bgp connection has /// learned. @@ -134,7 +134,7 @@ public partial interface IVirtualHubBgpConnectionsOperations /// /// Thrown when a required parameter is null /// - Task> BeginListLearnedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>>> BeginListLearnedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieves a list of routes the virtual hub bgp connection is /// advertising to the specified peer. @@ -163,7 +163,7 @@ public partial interface IVirtualHubBgpConnectionsOperations /// /// Thrown when a required parameter is null /// - Task> BeginListAdvertisedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>>> BeginListAdvertisedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieves the details of all VirtualHubBgpConnections. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualHubsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualHubsOperations.cs index ad3dd86a8435c..6c7c00f3e4d9d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualHubsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualHubsOperations.cs @@ -191,10 +191,13 @@ public partial interface IVirtualHubsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task GetEffectiveVirtualHubRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetEffectiveVirtualHubRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the inbound routes configured for the Virtual Hub on a /// particular connection. @@ -218,10 +221,13 @@ public partial interface IVirtualHubsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task GetInboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetInboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the outbound routes configured for the Virtual Hub on a /// particular connection. @@ -245,10 +251,13 @@ public partial interface IVirtualHubsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task GetOutboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetOutboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates a VirtualHub resource if it doesn't exist else updates the /// existing VirtualHub. @@ -323,10 +332,13 @@ public partial interface IVirtualHubsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginGetEffectiveVirtualHubRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginGetEffectiveVirtualHubRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the inbound routes configured for the Virtual Hub on a /// particular connection. @@ -350,10 +362,13 @@ public partial interface IVirtualHubsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginGetInboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginGetInboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the outbound routes configured for the Virtual Hub on a /// particular connection. @@ -377,10 +392,13 @@ public partial interface IVirtualHubsOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginGetOutboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginGetOutboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all the VirtualHubs in a resource group. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualWANsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualWansOperations.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualWANsOperations.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualWansOperations.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs index 581ea4a0dbd18..cb4a65481c6a3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs @@ -94,7 +94,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -323,7 +323,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -556,7 +556,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -744,11 +744,15 @@ internal InboundNatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "inboundNatRuleParameters"); } + if (inboundNatRuleParameters != null) + { + inboundNatRuleParameters.Validate(); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperations.cs index 8d579d153ad05..0b541a837047e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperations.cs @@ -80,6 +80,210 @@ internal InboundSecurityRuleOperations(NetworkManagementClient client) return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Retrieves the available specified Network Virtual Appliance Inbound + /// Security Rules Collection. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of security rule collection. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string ruleCollectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (networkVirtualApplianceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkVirtualApplianceName"); + } + if (ruleCollectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ruleCollectionName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2024-01-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("networkVirtualApplianceName", networkVirtualApplianceName); + tracingParameters.Add("ruleCollectionName", ruleCollectionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/inboundSecurityRules/{ruleCollectionName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{networkVirtualApplianceName}", System.Uri.EscapeDataString(networkVirtualApplianceName)); + _url = _url.Replace("{ruleCollectionName}", System.Uri.EscapeDataString(ruleCollectionName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Creates or updates the specified Network Virtual Appliance Inbound Security /// Rules. @@ -140,7 +344,7 @@ internal InboundSecurityRuleOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperationsExtensions.cs index 1cb335d0625bd..9d3cec75b30d8 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperationsExtensions.cs @@ -77,6 +77,54 @@ public static InboundSecurityRule CreateOrUpdate(this IInboundSecurityRuleOperat } } + /// + /// Retrieves the available specified Network Virtual Appliance Inbound + /// Security Rules Collection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of security rule collection. + /// + public static InboundSecurityRule Get(this IInboundSecurityRuleOperations operations, string resourceGroupName, string networkVirtualApplianceName, string ruleCollectionName) + { + return operations.GetAsync(resourceGroupName, networkVirtualApplianceName, ruleCollectionName).GetAwaiter().GetResult(); + } + + /// + /// Retrieves the available specified Network Virtual Appliance Inbound + /// Security Rules Collection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of security rule collection. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IInboundSecurityRuleOperations operations, string resourceGroupName, string networkVirtualApplianceName, string ruleCollectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, ruleCollectionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Creates or updates the specified Network Virtual Appliance Inbound Security /// Rules. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpAllocationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpAllocationsOperations.cs index f16c60b88b175..c830896a23429 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpAllocationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpAllocationsOperations.cs @@ -119,7 +119,7 @@ internal IpAllocationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal IpAllocationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal IpAllocationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -720,7 +720,7 @@ internal IpAllocationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -909,7 +909,7 @@ internal IpAllocationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1092,7 +1092,7 @@ internal IpAllocationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpGroupsOperations.cs index b27f46261d89a..98829c8de1ff0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpGroupsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpGroupsOperations.cs @@ -98,7 +98,7 @@ internal IpGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -324,7 +324,7 @@ internal IpGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -535,7 +535,7 @@ internal IpGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -708,7 +708,7 @@ internal IpGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -900,7 +900,7 @@ internal IpGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1111,7 +1111,7 @@ internal IpGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerBackendAddressPoolsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerBackendAddressPoolsOperations.cs index abeb287b15d45..3eb18810bc2f4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerBackendAddressPoolsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerBackendAddressPoolsOperations.cs @@ -94,7 +94,7 @@ internal LoadBalancerBackendAddressPoolsOperations(NetworkManagementClient clien { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -295,7 +295,7 @@ internal LoadBalancerBackendAddressPoolsOperations(NetworkManagementClient clien { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -560,7 +560,7 @@ internal LoadBalancerBackendAddressPoolsOperations(NetworkManagementClient clien { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -785,7 +785,7 @@ internal LoadBalancerBackendAddressPoolsOperations(NetworkManagementClient clien { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerFrontendIPConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerFrontendIPConfigurationsOperations.cs index d9afb9c3e3d8c..6e925d22c82f4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerFrontendIPConfigurationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerFrontendIPConfigurationsOperations.cs @@ -94,7 +94,7 @@ internal LoadBalancerFrontendIPConfigurationsOperations(NetworkManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -295,7 +295,7 @@ internal LoadBalancerFrontendIPConfigurationsOperations(NetworkManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerLoadBalancingRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerLoadBalancingRulesOperations.cs index f07bc5979007b..180c06d33eef6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerLoadBalancingRulesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerLoadBalancingRulesOperations.cs @@ -94,7 +94,7 @@ internal LoadBalancerLoadBalancingRulesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -295,7 +295,7 @@ internal LoadBalancerLoadBalancingRulesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerNetworkInterfacesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerNetworkInterfacesOperations.cs index 7214414ba5f6d..3c112931323cf 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerNetworkInterfacesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerNetworkInterfacesOperations.cs @@ -94,7 +94,7 @@ internal LoadBalancerNetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerOutboundRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerOutboundRulesOperations.cs index 58cf6dcbee347..77c52a780bb30 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerOutboundRulesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerOutboundRulesOperations.cs @@ -94,7 +94,7 @@ internal LoadBalancerOutboundRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -295,7 +295,7 @@ internal LoadBalancerOutboundRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerProbesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerProbesOperations.cs index 1f7e386b613c0..a77c8f2395ba9 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerProbesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerProbesOperations.cs @@ -94,7 +94,7 @@ internal LoadBalancerProbesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -295,7 +295,7 @@ internal LoadBalancerProbesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperations.cs index 0ca286a7dd6de..44760e205521a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperations.cs @@ -119,7 +119,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -720,7 +720,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -918,6 +918,224 @@ internal LoadBalancersOperations(NetworkManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Migrate load balancer to IP Based + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the load balancer. + /// + /// + /// Parameters supplied to the migrateToIpBased Api. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> MigrateToIpBasedWithHttpMessagesAsync(string groupName, string loadBalancerName, MigrateLoadBalancerToIpBasedRequest parameters = default(MigrateLoadBalancerToIpBasedRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupName"); + } + if (groupName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(groupName, "^[a-z][a-z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "groupName", "^[a-z][a-z0-9]*$"); + } + } + if (loadBalancerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "loadBalancerName"); + } + if (loadBalancerName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(loadBalancerName, "^[a-z][a-z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "loadBalancerName", "^[a-z][a-z0-9]*$"); + } + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2024-01-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("groupName", groupName); + tracingParameters.Add("loadBalancerName", loadBalancerName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "MigrateToIpBased", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/migrateToIpBased").ToString(); + _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName)); + _url = _url.Replace("{loadBalancerName}", System.Uri.EscapeDataString(loadBalancerName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Deletes the specified load balancer. /// @@ -959,7 +1177,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1142,7 +1360,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1358,7 +1576,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1553,7 +1771,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperationsExtensions.cs index 2c4197f4dece2..500cdcc275ea1 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperationsExtensions.cs @@ -347,6 +347,52 @@ public static BackendAddressInboundNatRulePortMappings ListInboundNatRulePortMap } } + /// + /// Migrate load balancer to IP Based + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the load balancer. + /// + /// + /// Parameters supplied to the migrateToIpBased Api. + /// + public static MigratedPools MigrateToIpBased(this ILoadBalancersOperations operations, string groupName, string loadBalancerName, MigrateLoadBalancerToIpBasedRequest parameters = default(MigrateLoadBalancerToIpBasedRequest)) + { + return operations.MigrateToIpBasedAsync(groupName, loadBalancerName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Migrate load balancer to IP Based + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the load balancer. + /// + /// + /// Parameters supplied to the migrateToIpBased Api. + /// + /// + /// The cancellation token. + /// + public static async Task MigrateToIpBasedAsync(this ILoadBalancersOperations operations, string groupName, string loadBalancerName, MigrateLoadBalancerToIpBasedRequest parameters = default(MigrateLoadBalancerToIpBasedRequest), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.MigrateToIpBasedWithHttpMessagesAsync(groupName, loadBalancerName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Deletes the specified load balancer. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LocalNetworkGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LocalNetworkGatewaysOperations.cs index 80ed1bd34b68c..b4d4f4fe4f1f3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LocalNetworkGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LocalNetworkGatewaysOperations.cs @@ -127,7 +127,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -357,7 +357,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -551,7 +551,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -762,7 +762,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -985,7 +985,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ManagementGroupNetworkManagerConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ManagementGroupNetworkManagerConnectionsOperations.cs index a512f5eb06402..26ebccb48909e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ManagementGroupNetworkManagerConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ManagementGroupNetworkManagerConnectionsOperations.cs @@ -98,7 +98,7 @@ internal ManagementGroupNetworkManagerConnectionsOperations(NetworkManagementCli { throw new ValidationException(ValidationRules.CannotBeNull, "networkManagerConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -313,7 +313,7 @@ internal ManagementGroupNetworkManagerConnectionsOperations(NetworkManagementCli { throw new ValidationException(ValidationRules.CannotBeNull, "networkManagerConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -500,7 +500,7 @@ internal ManagementGroupNetworkManagerConnectionsOperations(NetworkManagementCli { throw new ValidationException(ValidationRules.CannotBeNull, "networkManagerConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -683,7 +683,7 @@ internal ManagementGroupNetworkManagerConnectionsOperations(NetworkManagementCli { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActionType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActionType.cs index e14fc256b8195..3fd10fee52e53 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActionType.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActionType.cs @@ -20,5 +20,6 @@ public static class ActionType public const string Allow = "Allow"; public const string Block = "Block"; public const string Log = "Log"; + public const string JSChallenge = "JSChallenge"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveConnectivityConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveConnectivityConfiguration.cs index 4c458ad3d9aa1..c9cd05eeed144 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveConnectivityConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveConnectivityConfiguration.cs @@ -47,12 +47,14 @@ public ActiveConnectivityConfiguration() /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Flag if need to remove current /// existing peerings. Possible values include: 'False', 'True' + /// Unique identifier for this + /// resource. /// Effective configuration /// groups. /// Deployment time string. /// Deployment region. - public ActiveConnectivityConfiguration(string connectivityTopology, IList appliesToGroups, string id = default(string), string description = default(string), IList hubs = default(IList), string isGlobal = default(string), string provisioningState = default(string), string deleteExistingPeering = default(string), IList configurationGroups = default(IList), System.DateTime? commitTime = default(System.DateTime?), string region = default(string)) - : base(connectivityTopology, appliesToGroups, id, description, hubs, isGlobal, provisioningState, deleteExistingPeering, configurationGroups) + public ActiveConnectivityConfiguration(string connectivityTopology, IList appliesToGroups, string id = default(string), string description = default(string), IList hubs = default(IList), string isGlobal = default(string), string provisioningState = default(string), string deleteExistingPeering = default(string), string resourceGuid = default(string), IList configurationGroups = default(IList), System.DateTime? commitTime = default(System.DateTime?), string region = default(string)) + : base(connectivityTopology, appliesToGroups, id, description, hubs, isGlobal, provisioningState, deleteExistingPeering, resourceGuid, configurationGroups) { CommitTime = commitTime; Region = region; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveDefaultSecurityAdminRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveDefaultSecurityAdminRule.cs index 0fc18ece1e4c4..c95124db09bb2 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveDefaultSecurityAdminRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveDefaultSecurityAdminRule.cs @@ -72,7 +72,9 @@ public ActiveDefaultSecurityAdminRule() /// The provisioning state of the /// resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed' - public ActiveDefaultSecurityAdminRule(string id = default(string), System.DateTime? commitTime = default(System.DateTime?), string region = default(string), string configurationDescription = default(string), string ruleCollectionDescription = default(string), IList ruleCollectionAppliesToGroups = default(IList), IList ruleGroups = default(IList), string description = default(string), string flag = default(string), string protocol = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string access = default(string), int? priority = default(int?), string direction = default(string), string provisioningState = default(string)) + /// Unique identifier for this + /// resource. + public ActiveDefaultSecurityAdminRule(string id = default(string), System.DateTime? commitTime = default(System.DateTime?), string region = default(string), string configurationDescription = default(string), string ruleCollectionDescription = default(string), IList ruleCollectionAppliesToGroups = default(IList), IList ruleGroups = default(IList), string description = default(string), string flag = default(string), string protocol = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string access = default(string), int? priority = default(int?), string direction = default(string), string provisioningState = default(string), string resourceGuid = default(string)) : base(id, commitTime, region, configurationDescription, ruleCollectionDescription, ruleCollectionAppliesToGroups, ruleGroups) { Description = description; @@ -86,6 +88,7 @@ public ActiveDefaultSecurityAdminRule() Priority = priority; Direction = direction; ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; CustomInit(); } @@ -167,5 +170,11 @@ public ActiveDefaultSecurityAdminRule() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveSecurityAdminRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveSecurityAdminRule.cs index c14c17ed9de74..b932de1e2bb3f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveSecurityAdminRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ActiveSecurityAdminRule.cs @@ -69,7 +69,9 @@ public ActiveSecurityAdminRule() /// The provisioning state of the /// resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed' - public ActiveSecurityAdminRule(string protocol, string access, int priority, string direction, string id = default(string), System.DateTime? commitTime = default(System.DateTime?), string region = default(string), string configurationDescription = default(string), string ruleCollectionDescription = default(string), IList ruleCollectionAppliesToGroups = default(IList), IList ruleGroups = default(IList), string description = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string provisioningState = default(string)) + /// Unique identifier for this + /// resource. + public ActiveSecurityAdminRule(string protocol, string access, int priority, string direction, string id = default(string), System.DateTime? commitTime = default(System.DateTime?), string region = default(string), string configurationDescription = default(string), string ruleCollectionDescription = default(string), IList ruleCollectionAppliesToGroups = default(IList), IList ruleGroups = default(IList), string description = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string provisioningState = default(string), string resourceGuid = default(string)) : base(id, commitTime, region, configurationDescription, ruleCollectionDescription, ruleCollectionAppliesToGroups, ruleGroups) { Description = description; @@ -82,6 +84,7 @@ public ActiveSecurityAdminRule() Priority = priority; Direction = direction; ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; CustomInit(); } @@ -158,6 +161,12 @@ public ActiveSecurityAdminRule() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AdminRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AdminRule.cs index 513154e1b6996..84f69a327d59a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AdminRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AdminRule.cs @@ -66,7 +66,9 @@ public AdminRule() /// The provisioning state of the /// resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed' - public AdminRule(string protocol, string access, int priority, string direction, string id = default(string), string name = default(string), string type = default(string), string etag = default(string), SystemData systemData = default(SystemData), string description = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string provisioningState = default(string)) + /// Unique identifier for this + /// resource. + public AdminRule(string protocol, string access, int priority, string direction, string id = default(string), string name = default(string), string type = default(string), string etag = default(string), SystemData systemData = default(SystemData), string description = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string provisioningState = default(string), string resourceGuid = default(string)) : base(id, name, type, etag, systemData) { Description = description; @@ -79,6 +81,7 @@ public AdminRule() Priority = priority; Direction = direction; ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; CustomInit(); } @@ -155,6 +158,12 @@ public AdminRule() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AdminRuleCollection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AdminRuleCollection.cs index e89c766277de2..51dcae852778d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AdminRuleCollection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AdminRuleCollection.cs @@ -45,14 +45,17 @@ public AdminRuleCollection() /// The provisioning state of the /// resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed' + /// Unique identifier for this + /// resource. /// The system metadata related to this /// resource. - public AdminRuleCollection(IList appliesToGroups, string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string description = default(string), string provisioningState = default(string), SystemData systemData = default(SystemData)) + public AdminRuleCollection(IList appliesToGroups, string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string description = default(string), string provisioningState = default(string), string resourceGuid = default(string), SystemData systemData = default(SystemData)) : base(id, name, type, etag) { Description = description; AppliesToGroups = appliesToGroups; ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; SystemData = systemData; CustomInit(); } @@ -81,6 +84,12 @@ public AdminRuleCollection() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + /// /// Gets the system metadata related to this resource. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AdminState.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AdminState.cs new file mode 100644 index 0000000000000..06c83cb367c1c --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AdminState.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for AdminState. + /// + public static class AdminState + { + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGateway.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGateway.cs index e12d218307821..c3e39dac9c518 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGateway.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGateway.cs @@ -133,13 +133,18 @@ public ApplicationGateway() /// Load distribution policies /// of the application gateway resource. /// Global Configuration. + /// The default predefined SSL + /// Policy applied on the application gateway resource. Possible values + /// include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', + /// 'AppGwSslPolicy20170401S', 'AppGwSslPolicy20220101', + /// 'AppGwSslPolicy20220101S' /// A unique read-only string that changes whenever /// the resource is updated. /// A list of availability zones denoting where the /// resource needs to come from. /// The identity of the application gateway, if /// configured. - public ApplicationGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ApplicationGatewaySku sku = default(ApplicationGatewaySku), ApplicationGatewaySslPolicy sslPolicy = default(ApplicationGatewaySslPolicy), string operationalState = default(string), IList gatewayIPConfigurations = default(IList), IList authenticationCertificates = default(IList), IList trustedRootCertificates = default(IList), IList trustedClientCertificates = default(IList), IList sslCertificates = default(IList), IList frontendIPConfigurations = default(IList), IList frontendPorts = default(IList), IList probes = default(IList), IList backendAddressPools = default(IList), IList backendHttpSettingsCollection = default(IList), IList backendSettingsCollection = default(IList), IList httpListeners = default(IList), IList listeners = default(IList), IList sslProfiles = default(IList), IList urlPathMaps = default(IList), IList requestRoutingRules = default(IList), IList routingRules = default(IList), IList rewriteRuleSets = default(IList), IList redirectConfigurations = default(IList), ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirewallConfiguration = default(ApplicationGatewayWebApplicationFirewallConfiguration), SubResource firewallPolicy = default(SubResource), bool? enableHttp2 = default(bool?), bool? enableFips = default(bool?), ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration = default(ApplicationGatewayAutoscaleConfiguration), IList privateLinkConfigurations = default(IList), IList privateEndpointConnections = default(IList), string resourceGuid = default(string), string provisioningState = default(string), IList customErrorConfigurations = default(IList), bool? forceFirewallPolicyAssociation = default(bool?), IList loadDistributionPolicies = default(IList), ApplicationGatewayGlobalConfiguration globalConfiguration = default(ApplicationGatewayGlobalConfiguration), string etag = default(string), IList zones = default(IList), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) + public ApplicationGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ApplicationGatewaySku sku = default(ApplicationGatewaySku), ApplicationGatewaySslPolicy sslPolicy = default(ApplicationGatewaySslPolicy), string operationalState = default(string), IList gatewayIPConfigurations = default(IList), IList authenticationCertificates = default(IList), IList trustedRootCertificates = default(IList), IList trustedClientCertificates = default(IList), IList sslCertificates = default(IList), IList frontendIPConfigurations = default(IList), IList frontendPorts = default(IList), IList probes = default(IList), IList backendAddressPools = default(IList), IList backendHttpSettingsCollection = default(IList), IList backendSettingsCollection = default(IList), IList httpListeners = default(IList), IList listeners = default(IList), IList sslProfiles = default(IList), IList urlPathMaps = default(IList), IList requestRoutingRules = default(IList), IList routingRules = default(IList), IList rewriteRuleSets = default(IList), IList redirectConfigurations = default(IList), ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirewallConfiguration = default(ApplicationGatewayWebApplicationFirewallConfiguration), SubResource firewallPolicy = default(SubResource), bool? enableHttp2 = default(bool?), bool? enableFips = default(bool?), ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration = default(ApplicationGatewayAutoscaleConfiguration), IList privateLinkConfigurations = default(IList), IList privateEndpointConnections = default(IList), string resourceGuid = default(string), string provisioningState = default(string), IList customErrorConfigurations = default(IList), bool? forceFirewallPolicyAssociation = default(bool?), IList loadDistributionPolicies = default(IList), ApplicationGatewayGlobalConfiguration globalConfiguration = default(ApplicationGatewayGlobalConfiguration), string defaultPredefinedSslPolicy = default(string), string etag = default(string), IList zones = default(IList), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) : base(id, name, type, location, tags) { Sku = sku; @@ -177,6 +182,7 @@ public ApplicationGateway() ForceFirewallPolicyAssociation = forceFirewallPolicyAssociation; LoadDistributionPolicies = loadDistributionPolicies; GlobalConfiguration = globalConfiguration; + DefaultPredefinedSslPolicy = defaultPredefinedSslPolicy; Etag = etag; Zones = zones; Identity = identity; @@ -440,6 +446,16 @@ public ApplicationGateway() [JsonProperty(PropertyName = "properties.globalConfiguration")] public ApplicationGatewayGlobalConfiguration GlobalConfiguration { get; set; } + /// + /// Gets the default predefined SSL Policy applied on the application + /// gateway resource. Possible values include: + /// 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', + /// 'AppGwSslPolicy20170401S', 'AppGwSslPolicy20220101', + /// 'AppGwSslPolicy20220101S' + /// + [JsonProperty(PropertyName = "properties.defaultPredefinedSslPolicy")] + public string DefaultPredefinedSslPolicy { get; private set; } + /// /// Gets a unique read-only string that changes whenever the resource /// is updated. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs index f031eeef3a705..c2a9bdc553d57 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs @@ -75,6 +75,16 @@ public virtual void Validate() { BackendHttpSettings.Validate(); } + if (Servers != null) + { + foreach (var element in Servers) + { + if (element != null) + { + element.Validate(); + } + } + } } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthServer.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthServer.cs index 46b8ad150f468..2caf05181f53a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthServer.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthServer.cs @@ -76,5 +76,18 @@ public ApplicationGatewayBackendHealthServer() [JsonProperty(PropertyName = "healthProbeLog")] public string HealthProbeLog { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (IpConfiguration != null) + { + IpConfiguration.Validate(); + } + } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayCustomError.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayCustomError.cs index 821052427d731..1a6c40a41fbcc 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayCustomError.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayCustomError.cs @@ -34,7 +34,7 @@ public ApplicationGatewayCustomError() /// Status code of the application gateway /// custom error. Possible values include: 'HttpStatus400', /// 'HttpStatus403', 'HttpStatus404', 'HttpStatus405', 'HttpStatus408', - /// 'HttpStatus499', 'HttpStatus500', 'HttpStatus502', 'HttpStatus503', + /// 'HttpStatus500', 'HttpStatus502', 'HttpStatus503', /// 'HttpStatus504' /// Error page URL of the application /// gateway custom error. @@ -53,8 +53,8 @@ public ApplicationGatewayCustomError() /// /// Gets or sets status code of the application gateway custom error. /// Possible values include: 'HttpStatus400', 'HttpStatus403', - /// 'HttpStatus404', 'HttpStatus405', 'HttpStatus408', 'HttpStatus499', - /// 'HttpStatus500', 'HttpStatus502', 'HttpStatus503', 'HttpStatus504' + /// 'HttpStatus404', 'HttpStatus405', 'HttpStatus408', 'HttpStatus500', + /// 'HttpStatus502', 'HttpStatus503', 'HttpStatus504' /// [JsonProperty(PropertyName = "statusCode")] public string StatusCode { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayCustomErrorStatusCode.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayCustomErrorStatusCode.cs index 63306894c3655..5cba0263ee283 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayCustomErrorStatusCode.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayCustomErrorStatusCode.cs @@ -21,7 +21,6 @@ public static class ApplicationGatewayCustomErrorStatusCode public const string HttpStatus404 = "HttpStatus404"; public const string HttpStatus405 = "HttpStatus405"; public const string HttpStatus408 = "HttpStatus408"; - public const string HttpStatus499 = "HttpStatus499"; public const string HttpStatus500 = "HttpStatus500"; public const string HttpStatus502 = "HttpStatus502"; public const string HttpStatus503 = "HttpStatus503"; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFirewallRateLimitDuration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFirewallRateLimitDuration.cs new file mode 100644 index 0000000000000..16bc916299659 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFirewallRateLimitDuration.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for ApplicationGatewayFirewallRateLimitDuration. + /// + public static class ApplicationGatewayFirewallRateLimitDuration + { + public const string OneMin = "OneMin"; + public const string FiveMins = "FiveMins"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFirewallUserSessionVariable.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFirewallUserSessionVariable.cs new file mode 100644 index 0000000000000..fe6ff6d03de3d --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFirewallUserSessionVariable.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for ApplicationGatewayFirewallUserSessionVariable. + /// + public static class ApplicationGatewayFirewallUserSessionVariable + { + public const string ClientAddr = "ClientAddr"; + public const string GeoLocation = "GeoLocation"; + public const string None = "None"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIPConfiguration.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIpConfiguration.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIPConfiguration.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayHeaderConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayHeaderConfiguration.cs index ccb816cbb4d54..a6f4ec470683d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayHeaderConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayHeaderConfiguration.cs @@ -33,11 +33,17 @@ public ApplicationGatewayHeaderConfiguration() /// /// Header name of the header /// configuration. + /// An optional field under "Rewrite + /// Action". It lets you capture and modify the value(s) of a specific + /// header when multiple headers with the same name exist. Currently + /// supported for Set-Cookie Response header only. For more details, + /// visit https://aka.ms/appgwheadercrud /// Header value of the header /// configuration. - public ApplicationGatewayHeaderConfiguration(string headerName = default(string), string headerValue = default(string)) + public ApplicationGatewayHeaderConfiguration(string headerName = default(string), HeaderValueMatcher headerValueMatcher = default(HeaderValueMatcher), string headerValue = default(string)) { HeaderName = headerName; + HeaderValueMatcher = headerValueMatcher; HeaderValue = headerValue; CustomInit(); } @@ -53,6 +59,16 @@ public ApplicationGatewayHeaderConfiguration() [JsonProperty(PropertyName = "headerName")] public string HeaderName { get; set; } + /// + /// Gets or sets an optional field under "Rewrite Action". It lets you + /// capture and modify the value(s) of a specific header when multiple + /// headers with the same name exist. Currently supported for + /// Set-Cookie Response header only. For more details, visit + /// https://aka.ms/appgwheadercrud + /// + [JsonProperty(PropertyName = "headerValueMatcher")] + public HeaderValueMatcher HeaderValueMatcher { get; set; } + /// /// Gets or sets header value of the header configuration. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIPConfiguration.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIpConfiguration.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIPConfiguration.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayListener.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayListener.cs index eda7fdf0ab950..392bd36107ba8 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayListener.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayListener.cs @@ -13,6 +13,8 @@ namespace Microsoft.Azure.Management.Network.Models using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -46,12 +48,15 @@ public ApplicationGatewayListener() /// The provisioning state of the /// listener resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed' + /// List of Server Name Indications(SNI) for + /// TLS Multi-site Listener that allows special wildcard characters as + /// well. /// Name of the listener that is unique within an /// Application Gateway. /// A unique read-only string that changes whenever /// the resource is updated. /// Type of the resource. - public ApplicationGatewayListener(string id = default(string), SubResource frontendIPConfiguration = default(SubResource), SubResource frontendPort = default(SubResource), string protocol = default(string), SubResource sslCertificate = default(SubResource), SubResource sslProfile = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) + public ApplicationGatewayListener(string id = default(string), SubResource frontendIPConfiguration = default(SubResource), SubResource frontendPort = default(SubResource), string protocol = default(string), SubResource sslCertificate = default(SubResource), SubResource sslProfile = default(SubResource), string provisioningState = default(string), IList hostNames = default(IList), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { FrontendIPConfiguration = frontendIPConfiguration; @@ -60,6 +65,7 @@ public ApplicationGatewayListener() SslCertificate = sslCertificate; SslProfile = sslProfile; ProvisioningState = provisioningState; + HostNames = hostNames; Name = name; Etag = etag; Type = type; @@ -110,6 +116,14 @@ public ApplicationGatewayListener() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets or sets list of Server Name Indications(SNI) for TLS + /// Multi-site Listener that allows special wildcard characters as + /// well. + /// + [JsonProperty(PropertyName = "properties.hostNames")] + public IList HostNames { get; set; } + /// /// Gets or sets name of the listener that is unique within an /// Application Gateway. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs index cdfd70c99a5f8..4cdefd82c5d6d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs @@ -65,7 +65,7 @@ public ApplicationGatewayProbe() /// Custom port which will be used for probing the /// backend servers. The valid value ranges from 1 to 65535. In case /// not set, port from http settings will be used. This property is - /// valid for Standard_v2 and WAF_v2 only. + /// valid for Basic, Standard_v2 and WAF_v2 only. /// Name of the probe that is unique within an /// Application Gateway. /// A unique read-only string that changes whenever @@ -180,7 +180,7 @@ public ApplicationGatewayProbe() /// Gets or sets custom port which will be used for probing the backend /// servers. The valid value ranges from 1 to 65535. In case not set, /// port from http settings will be used. This property is valid for - /// Standard_v2 and WAF_v2 only. + /// Basic, Standard_v2 and WAF_v2 only. /// [JsonProperty(PropertyName = "properties.port")] public int? Port { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProtocol.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProtocol.cs index 92bcbeea2b761..511aca701a2c8 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProtocol.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProtocol.cs @@ -16,9 +16,23 @@ namespace Microsoft.Azure.Management.Network.Models /// public static class ApplicationGatewayProtocol { + /// + /// Supported for httpListeners and backendHttpSettingsCollection + /// properties. + /// public const string Http = "Http"; + /// + /// Supported for httpListeners and backendHttpSettingsCollection + /// properties. + /// public const string Https = "Https"; + /// + /// Supported for listeners and backendSettingsCollection properties. + /// public const string Tcp = "Tcp"; + /// + /// Supported for listeners and backendSettingsCollection properties. + /// public const string Tls = "Tls"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySku.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySku.cs index f76fe39877df2..b5eb794e02014 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySku.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySku.cs @@ -32,16 +32,20 @@ public ApplicationGatewaySku() /// Name of an application gateway SKU. Possible /// values include: 'Standard_Small', 'Standard_Medium', /// 'Standard_Large', 'WAF_Medium', 'WAF_Large', 'Standard_v2', - /// 'WAF_v2' + /// 'WAF_v2', 'Basic' /// Tier of an application gateway. Possible values - /// include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2' + /// include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2', + /// 'Basic' /// Capacity (instance count) of an application /// gateway. - public ApplicationGatewaySku(string name = default(string), string tier = default(string), int? capacity = default(int?)) + /// Family of an application gateway SKU. Possible + /// values include: 'Generation_1', 'Generation_2' + public ApplicationGatewaySku(string name = default(string), string tier = default(string), int? capacity = default(int?), string family = default(string)) { Name = name; Tier = tier; Capacity = capacity; + Family = family; CustomInit(); } @@ -53,14 +57,14 @@ public ApplicationGatewaySku() /// /// Gets or sets name of an application gateway SKU. Possible values /// include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', - /// 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2' + /// 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2', 'Basic' /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets or sets tier of an application gateway. Possible values - /// include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2' + /// include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2', 'Basic' /// [JsonProperty(PropertyName = "tier")] public string Tier { get; set; } @@ -71,5 +75,12 @@ public ApplicationGatewaySku() [JsonProperty(PropertyName = "capacity")] public int? Capacity { get; set; } + /// + /// Gets or sets family of an application gateway SKU. Possible values + /// include: 'Generation_1', 'Generation_2' + /// + [JsonProperty(PropertyName = "family")] + public string Family { get; set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySkuFamily.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySkuFamily.cs new file mode 100644 index 0000000000000..7e488b1bceb22 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySkuFamily.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for ApplicationGatewaySkuFamily. + /// + public static class ApplicationGatewaySkuFamily + { + public const string Generation1 = "Generation_1"; + public const string Generation2 = "Generation_2"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySkuName.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySkuName.cs index 0d777f8a39d62..ad969b426d970 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySkuName.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySkuName.cs @@ -23,5 +23,6 @@ public static class ApplicationGatewaySkuName public const string WAFLarge = "WAF_Large"; public const string StandardV2 = "Standard_v2"; public const string WAFV2 = "WAF_v2"; + public const string Basic = "Basic"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayTier.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayTier.cs index ec35cf545ffa6..990ee1fcee2d3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayTier.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayTier.cs @@ -20,5 +20,6 @@ public static class ApplicationGatewayTier public const string WAF = "WAF"; public const string StandardV2 = "Standard_v2"; public const string WAFV2 = "WAF_v2"; + public const string Basic = "Basic"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRule.cs index caa6a0d598e61..347034adfc53f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRule.cs @@ -48,7 +48,9 @@ public ApplicationRule() /// rule. /// List of destination azure web /// categories. - public ApplicationRule(string name = default(string), string description = default(string), IList sourceAddresses = default(IList), IList destinationAddresses = default(IList), IList protocols = default(IList), IList targetFqdns = default(IList), IList targetUrls = default(IList), IList fqdnTags = default(IList), IList sourceIpGroups = default(IList), bool? terminateTLS = default(bool?), IList webCategories = default(IList)) + /// List of HTTP/S headers to + /// insert. + public ApplicationRule(string name = default(string), string description = default(string), IList sourceAddresses = default(IList), IList destinationAddresses = default(IList), IList protocols = default(IList), IList targetFqdns = default(IList), IList targetUrls = default(IList), IList fqdnTags = default(IList), IList sourceIpGroups = default(IList), bool? terminateTLS = default(bool?), IList webCategories = default(IList), IList httpHeadersToInsert = default(IList)) : base(name, description) { SourceAddresses = sourceAddresses; @@ -60,6 +62,7 @@ public ApplicationRule() SourceIpGroups = sourceIpGroups; TerminateTLS = terminateTLS; WebCategories = webCategories; + HttpHeadersToInsert = httpHeadersToInsert; CustomInit(); } @@ -122,5 +125,11 @@ public ApplicationRule() [JsonProperty(PropertyName = "webCategories")] public IList WebCategories { get; set; } + /// + /// Gets or sets list of HTTP/S headers to insert. + /// + [JsonProperty(PropertyName = "httpHeadersToInsert")] + public IList HttpHeadersToInsert { get; set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPacketCaptureFlags.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPacketCaptureFlags.cs new file mode 100644 index 0000000000000..40ebc9f8653a9 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPacketCaptureFlags.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Properties of the AzureFirewallRCAction. + /// + public partial class AzureFirewallPacketCaptureFlags + { + /// + /// Initializes a new instance of the AzureFirewallPacketCaptureFlags + /// class. + /// + public AzureFirewallPacketCaptureFlags() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureFirewallPacketCaptureFlags + /// class. + /// + /// Flags to capture. Possible values include: + /// 'fin', 'syn', 'rst', 'push', 'ack', 'urg' + public AzureFirewallPacketCaptureFlags(string type = default(string)) + { + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets flags to capture. Possible values include: 'fin', + /// 'syn', 'rst', 'push', 'ack', 'urg' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPacketCaptureFlagsType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPacketCaptureFlagsType.cs new file mode 100644 index 0000000000000..4272a0584c2ec --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPacketCaptureFlagsType.cs @@ -0,0 +1,26 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for AzureFirewallPacketCaptureFlagsType. + /// + public static class AzureFirewallPacketCaptureFlagsType + { + public const string Fin = "fin"; + public const string Syn = "syn"; + public const string Rst = "rst"; + public const string Push = "push"; + public const string Ack = "ack"; + public const string Urg = "urg"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.cs new file mode 100644 index 0000000000000..cb71cb94bd064 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Group of src/dest ips and ports to be captured. + /// + public partial class AzureFirewallPacketCaptureRule + { + /// + /// Initializes a new instance of the AzureFirewallPacketCaptureRule + /// class. + /// + public AzureFirewallPacketCaptureRule() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureFirewallPacketCaptureRule + /// class. + /// + /// List of source IP addresses/subnets to be + /// captured. + /// List of destination IP addresses/subnets + /// to be captured. + /// List of ports to be + /// captured. + public AzureFirewallPacketCaptureRule(IList sources = default(IList), IList destinations = default(IList), IList destinationPorts = default(IList)) + { + Sources = sources; + Destinations = destinations; + DestinationPorts = destinationPorts; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of source IP addresses/subnets to be captured. + /// + [JsonProperty(PropertyName = "sources")] + public IList Sources { get; set; } + + /// + /// Gets or sets list of destination IP addresses/subnets to be + /// captured. + /// + [JsonProperty(PropertyName = "destinations")] + public IList Destinations { get; set; } + + /// + /// Gets or sets list of ports to be captured. + /// + [JsonProperty(PropertyName = "destinationPorts")] + public IList DestinationPorts { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallsPacketCaptureHeaders.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallsPacketCaptureHeaders.cs new file mode 100644 index 0000000000000..6e88e750edfa5 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallsPacketCaptureHeaders.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for PacketCapture operation. + /// + public partial class AzureFirewallsPacketCaptureHeaders + { + /// + /// Initializes a new instance of the + /// AzureFirewallsPacketCaptureHeaders class. + /// + public AzureFirewallsPacketCaptureHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// AzureFirewallsPacketCaptureHeaders class. + /// + public AzureFirewallsPacketCaptureHeaders(string location = default(string)) + { + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs index 43377e7d95921..013188628f3e2 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs @@ -59,13 +59,16 @@ public BackendAddressPool() /// address. /// A reference to a virtual /// network. + /// Backend address synchronous mode for the + /// backend pool. Possible values include: 'Automatic', + /// 'Manual' /// The name of the resource that is unique within /// the set of backend address pools used by the load balancer. This /// name can be used to access the resource. /// A unique read-only string that changes whenever /// the resource is updated. /// Type of the resource. - public BackendAddressPool(string id = default(string), string location = default(string), IList tunnelInterfaces = default(IList), IList loadBalancerBackendAddresses = default(IList), IList backendIPConfigurations = default(IList), IList loadBalancingRules = default(IList), SubResource outboundRule = default(SubResource), IList outboundRules = default(IList), IList inboundNatRules = default(IList), string provisioningState = default(string), int? drainPeriodInSeconds = default(int?), SubResource virtualNetwork = default(SubResource), string name = default(string), string etag = default(string), string type = default(string)) + public BackendAddressPool(string id = default(string), string location = default(string), IList tunnelInterfaces = default(IList), IList loadBalancerBackendAddresses = default(IList), IList backendIPConfigurations = default(IList), IList loadBalancingRules = default(IList), SubResource outboundRule = default(SubResource), IList outboundRules = default(IList), IList inboundNatRules = default(IList), string provisioningState = default(string), int? drainPeriodInSeconds = default(int?), SubResource virtualNetwork = default(SubResource), string syncMode = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { Location = location; @@ -79,6 +82,7 @@ public BackendAddressPool() ProvisioningState = provisioningState; DrainPeriodInSeconds = drainPeriodInSeconds; VirtualNetwork = virtualNetwork; + SyncMode = syncMode; Name = name; Etag = etag; Type = type; @@ -164,6 +168,13 @@ public BackendAddressPool() [JsonProperty(PropertyName = "properties.virtualNetwork")] public SubResource VirtualNetwork { get; set; } + /// + /// Gets or sets backend address synchronous mode for the backend pool. + /// Possible values include: 'Automatic', 'Manual' + /// + [JsonProperty(PropertyName = "properties.syncMode")] + public string SyncMode { get; set; } + /// /// Gets or sets the name of the resource that is unique within the set /// of backend address pools used by the load balancer. This name can diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs index fdb1f396faebb..1447d03a047a4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs @@ -43,6 +43,8 @@ public BastionHost() /// resource. /// FQDN for the endpoint on which bastion host /// is accessible. + /// Reference to an existing virtual + /// network required for Developer Bastion Host only. /// The provisioning state of the /// bastion host resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed' @@ -58,14 +60,22 @@ public BastionHost() /// the Bastion Host resource. /// Enable/Disable Tunneling feature of /// the Bastion Host resource. + /// Enable/Disable Kerberos feature of the + /// Bastion Host resource. + /// Enable/Disable Session + /// Recording feature of the Bastion Host resource. + /// A list of availability zones denoting where the + /// resource needs to come from. /// A unique read-only string that changes whenever /// the resource is updated. /// The sku of this Bastion Host. - public BastionHost(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ipConfigurations = default(IList), string dnsName = default(string), string provisioningState = default(string), int? scaleUnits = default(int?), bool? disableCopyPaste = default(bool?), bool? enableFileCopy = default(bool?), bool? enableIpConnect = default(bool?), bool? enableShareableLink = default(bool?), bool? enableTunneling = default(bool?), string etag = default(string), Sku sku = default(Sku)) + public BastionHost(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ipConfigurations = default(IList), string dnsName = default(string), SubResource virtualNetwork = default(SubResource), BastionHostPropertiesFormatNetworkAcls networkAcls = default(BastionHostPropertiesFormatNetworkAcls), string provisioningState = default(string), int? scaleUnits = default(int?), bool? disableCopyPaste = default(bool?), bool? enableFileCopy = default(bool?), bool? enableIpConnect = default(bool?), bool? enableShareableLink = default(bool?), bool? enableTunneling = default(bool?), bool? enableKerberos = default(bool?), bool? enableSessionRecording = default(bool?), IList zones = default(IList), string etag = default(string), Sku sku = default(Sku)) : base(id, name, type, location, tags) { IpConfigurations = ipConfigurations; DnsName = dnsName; + VirtualNetwork = virtualNetwork; + NetworkAcls = networkAcls; ProvisioningState = provisioningState; ScaleUnits = scaleUnits; DisableCopyPaste = disableCopyPaste; @@ -73,6 +83,9 @@ public BastionHost() EnableIpConnect = enableIpConnect; EnableShareableLink = enableShareableLink; EnableTunneling = enableTunneling; + EnableKerberos = enableKerberos; + EnableSessionRecording = enableSessionRecording; + Zones = zones; Etag = etag; Sku = sku; CustomInit(); @@ -96,6 +109,18 @@ public BastionHost() [JsonProperty(PropertyName = "properties.dnsName")] public string DnsName { get; set; } + /// + /// Gets or sets reference to an existing virtual network required for + /// Developer Bastion Host only. + /// + [JsonProperty(PropertyName = "properties.virtualNetwork")] + public SubResource VirtualNetwork { get; set; } + + /// + /// + [JsonProperty(PropertyName = "properties.networkAcls")] + public BastionHostPropertiesFormatNetworkAcls NetworkAcls { get; set; } + /// /// Gets the provisioning state of the bastion host resource. Possible /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' @@ -144,6 +169,27 @@ public BastionHost() [JsonProperty(PropertyName = "properties.enableTunneling")] public bool? EnableTunneling { get; set; } + /// + /// Gets or sets enable/Disable Kerberos feature of the Bastion Host + /// resource. + /// + [JsonProperty(PropertyName = "properties.enableKerberos")] + public bool? EnableKerberos { get; set; } + + /// + /// Gets or sets enable/Disable Session Recording feature of the + /// Bastion Host resource. + /// + [JsonProperty(PropertyName = "properties.enableSessionRecording")] + public bool? EnableSessionRecording { get; set; } + + /// + /// Gets or sets a list of availability zones denoting where the + /// resource needs to come from. + /// + [JsonProperty(PropertyName = "zones")] + public IList Zones { get; set; } + /// /// Gets a unique read-only string that changes whenever the resource /// is updated. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHostPropertiesFormatNetworkAcls.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHostPropertiesFormatNetworkAcls.cs new file mode 100644 index 0000000000000..e3fcb92a0cda5 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHostPropertiesFormatNetworkAcls.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + public partial class BastionHostPropertiesFormatNetworkAcls + { + /// + /// Initializes a new instance of the + /// BastionHostPropertiesFormatNetworkAcls class. + /// + public BastionHostPropertiesFormatNetworkAcls() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// BastionHostPropertiesFormatNetworkAcls class. + /// + /// Sets the IP ACL rules for Developer Bastion + /// Host. + public BastionHostPropertiesFormatNetworkAcls(IList ipRules = default(IList)) + { + IpRules = ipRules; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets sets the IP ACL rules for Developer Bastion Host. + /// + [JsonProperty(PropertyName = "ipRules")] + public IList IpRules { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHostSkuName.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHostSkuName.cs index a3dfc0fca92eb..9091efb4eac9a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHostSkuName.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHostSkuName.cs @@ -18,5 +18,7 @@ public static class BastionHostSkuName { public const string Basic = "Basic"; public const string Standard = "Standard"; + public const string Developer = "Developer"; + public const string Premium = "Premium"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionShareableLinkListRequest.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionShareableLinkListRequest.cs index d92789f258d4c..1a247c7e02df0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionShareableLinkListRequest.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionShareableLinkListRequest.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Network.Models using System.Linq; /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// public partial class BastionShareableLinkListRequest { diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionShareableLinkTokenListRequest.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionShareableLinkTokenListRequest.cs new file mode 100644 index 0000000000000..7c4d44f71a14f --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionShareableLinkTokenListRequest.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Post request for Delete Bastion Shareable Link By Token endpoint. + /// + public partial class BastionShareableLinkTokenListRequest + { + /// + /// Initializes a new instance of the + /// BastionShareableLinkTokenListRequest class. + /// + public BastionShareableLinkTokenListRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// BastionShareableLinkTokenListRequest class. + /// + /// List of Bastion Shareable Link Token. + public BastionShareableLinkTokenListRequest(IList tokens = default(IList)) + { + Tokens = tokens; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of Bastion Shareable Link Token. + /// + [JsonProperty(PropertyName = "tokens")] + public IList Tokens { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/CertificateAuthentication.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/CertificateAuthentication.cs new file mode 100644 index 0000000000000..b45ba560f663c --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/CertificateAuthentication.cs @@ -0,0 +1,74 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Certificate Authentication information for a certificate based + /// authentication connection. + /// + public partial class CertificateAuthentication + { + /// + /// Initializes a new instance of the CertificateAuthentication class. + /// + public CertificateAuthentication() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CertificateAuthentication class. + /// + /// Keyvault secret ID for + /// outbound authentication certificate. + /// Inbound + /// authentication certificate subject name. + /// Inbound authentication + /// certificate public keys. + public CertificateAuthentication(string outboundAuthCertificate = default(string), string inboundAuthCertificateSubjectName = default(string), IList inboundAuthCertificateChain = default(IList)) + { + OutboundAuthCertificate = outboundAuthCertificate; + InboundAuthCertificateSubjectName = inboundAuthCertificateSubjectName; + InboundAuthCertificateChain = inboundAuthCertificateChain; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets keyvault secret ID for outbound authentication + /// certificate. + /// + [JsonProperty(PropertyName = "outboundAuthCertificate")] + public string OutboundAuthCertificate { get; set; } + + /// + /// Gets or sets inbound authentication certificate subject name. + /// + [JsonProperty(PropertyName = "inboundAuthCertificateSubjectName")] + public string InboundAuthCertificateSubjectName { get; set; } + + /// + /// Gets or sets inbound authentication certificate public keys. + /// + [JsonProperty(PropertyName = "inboundAuthCertificateChain")] + public IList InboundAuthCertificateChain { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConfigurationGroup.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConfigurationGroup.cs index 5c19acbaf00c1..966ec0ae66f71 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConfigurationGroup.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConfigurationGroup.cs @@ -38,11 +38,14 @@ public ConfigurationGroup() /// The provisioning state of the scope /// assignment resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed' - public ConfigurationGroup(string id = default(string), string description = default(string), string provisioningState = default(string)) + /// Unique identifier for this + /// resource. + public ConfigurationGroup(string id = default(string), string description = default(string), string provisioningState = default(string), string resourceGuid = default(string)) { Id = id; Description = description; ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; CustomInit(); } @@ -71,5 +74,11 @@ public ConfigurationGroup() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionAuthenticationType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionAuthenticationType.cs new file mode 100644 index 0000000000000..854d64aad15c9 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionAuthenticationType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for ConnectionAuthenticationType. + /// + public static class ConnectionAuthenticationType + { + public const string PSK = "PSK"; + public const string Certificate = "Certificate"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpoint.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpoint.cs index 90cc248d8cb0f..a63daf7222bd4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpoint.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpoint.cs @@ -35,18 +35,31 @@ public ConnectionMonitorEndpoint() /// The endpoint type. Possible values include: /// 'AzureVM', 'AzureVNet', 'AzureSubnet', 'ExternalAddress', /// 'MMAWorkspaceMachine', 'MMAWorkspaceNetwork', 'AzureArcVM', - /// 'AzureVMSS' + /// 'AzureVMSS', 'AzureArcNetwork' /// Resource ID of the connection monitor - /// endpoint. - /// Address of the connection monitor endpoint - /// (IP or domain name). - /// Filter for sub-items within the - /// endpoint. - /// Endpoint scope. + /// endpoint are supported for AzureVM, AzureVMSS, AzureVNet, + /// AzureSubnet, MMAWorkspaceMachine, MMAWorkspaceNetwork, AzureArcVM + /// endpoint type. + /// Address of the connection monitor endpoint. + /// Supported for AzureVM, ExternalAddress, ArcMachine, + /// MMAWorkspaceMachine endpoint type. + /// Filter field is getting deprecated and should + /// not be used. Instead use Include/Exclude scope fields for + /// it. + /// Endpoint scope defines which target resource to + /// monitor in case of compound resource endpoints like VMSS, + /// AzureSubnet, AzureVNet, MMAWorkspaceNetwork, + /// AzureArcNetwork. /// Test coverage for the endpoint. /// Possible values include: 'Default', 'Low', 'BelowAverage', /// 'Average', 'AboveAverage', 'Full' - public ConnectionMonitorEndpoint(string name, string type = default(string), string resourceId = default(string), string address = default(string), ConnectionMonitorEndpointFilter filter = default(ConnectionMonitorEndpointFilter), ConnectionMonitorEndpointScope scope = default(ConnectionMonitorEndpointScope), string coverageLevel = default(string)) + /// Location details is optional and only + /// being used for 'AzureArcNetwork' type endpoints, which contains + /// region details. + /// Subscription ID for connection monitor + /// endpoint. It's an optional parameter which is being used for + /// 'AzureArcNetwork' type endpoint. + public ConnectionMonitorEndpoint(string name, string type = default(string), string resourceId = default(string), string address = default(string), ConnectionMonitorEndpointFilter filter = default(ConnectionMonitorEndpointFilter), ConnectionMonitorEndpointScope scope = default(ConnectionMonitorEndpointScope), string coverageLevel = default(string), ConnectionMonitorEndpointLocationDetails locationDetails = default(ConnectionMonitorEndpointLocationDetails), string subscriptionId = default(string)) { Name = name; Type = type; @@ -55,6 +68,8 @@ public ConnectionMonitorEndpoint() Filter = filter; Scope = scope; CoverageLevel = coverageLevel; + LocationDetails = locationDetails; + SubscriptionId = subscriptionId; CustomInit(); } @@ -73,32 +88,38 @@ public ConnectionMonitorEndpoint() /// Gets or sets the endpoint type. Possible values include: 'AzureVM', /// 'AzureVNet', 'AzureSubnet', 'ExternalAddress', /// 'MMAWorkspaceMachine', 'MMAWorkspaceNetwork', 'AzureArcVM', - /// 'AzureVMSS' + /// 'AzureVMSS', 'AzureArcNetwork' /// [JsonProperty(PropertyName = "type")] public string Type { get; set; } /// - /// Gets or sets resource ID of the connection monitor endpoint. + /// Gets or sets resource ID of the connection monitor endpoint are + /// supported for AzureVM, AzureVMSS, AzureVNet, AzureSubnet, + /// MMAWorkspaceMachine, MMAWorkspaceNetwork, AzureArcVM endpoint type. /// [JsonProperty(PropertyName = "resourceId")] public string ResourceId { get; set; } /// - /// Gets or sets address of the connection monitor endpoint (IP or - /// domain name). + /// Gets or sets address of the connection monitor endpoint. Supported + /// for AzureVM, ExternalAddress, ArcMachine, MMAWorkspaceMachine + /// endpoint type. /// [JsonProperty(PropertyName = "address")] public string Address { get; set; } /// - /// Gets or sets filter for sub-items within the endpoint. + /// Gets or sets filter field is getting deprecated and should not be + /// used. Instead use Include/Exclude scope fields for it. /// [JsonProperty(PropertyName = "filter")] public ConnectionMonitorEndpointFilter Filter { get; set; } /// - /// Gets or sets endpoint scope. + /// Gets or sets endpoint scope defines which target resource to + /// monitor in case of compound resource endpoints like VMSS, + /// AzureSubnet, AzureVNet, MMAWorkspaceNetwork, AzureArcNetwork. /// [JsonProperty(PropertyName = "scope")] public ConnectionMonitorEndpointScope Scope { get; set; } @@ -111,6 +132,21 @@ public ConnectionMonitorEndpoint() [JsonProperty(PropertyName = "coverageLevel")] public string CoverageLevel { get; set; } + /// + /// Gets or sets location details is optional and only being used for + /// 'AzureArcNetwork' type endpoints, which contains region details. + /// + [JsonProperty(PropertyName = "locationDetails")] + public ConnectionMonitorEndpointLocationDetails LocationDetails { get; set; } + + /// + /// Gets or sets subscription ID for connection monitor endpoint. It's + /// an optional parameter which is being used for 'AzureArcNetwork' + /// type endpoint. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; set; } + /// /// Validate the object. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointLocationDetails.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointLocationDetails.cs new file mode 100644 index 0000000000000..55650e1b39f98 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointLocationDetails.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Connection monitor endpoint location details only being used for + /// 'AzureArcNetwork' type endpoints, which contains the region details. + /// + public partial class ConnectionMonitorEndpointLocationDetails + { + /// + /// Initializes a new instance of the + /// ConnectionMonitorEndpointLocationDetails class. + /// + public ConnectionMonitorEndpointLocationDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ConnectionMonitorEndpointLocationDetails class. + /// + /// Region for connection monitor + /// endpoint. + public ConnectionMonitorEndpointLocationDetails(string region = default(string)) + { + Region = region; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets region for connection monitor endpoint. + /// + [JsonProperty(PropertyName = "region")] + public string Region { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityConfiguration.cs index 6ba2598985312..f9b945c5a296c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityConfiguration.cs @@ -52,9 +52,11 @@ public ConnectivityConfiguration() /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Flag if need to remove current /// existing peerings. Possible values include: 'False', 'True' + /// Unique identifier for this + /// resource. /// The system metadata related to this /// resource. - public ConnectivityConfiguration(string connectivityTopology, IList appliesToGroups, string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string description = default(string), IList hubs = default(IList), string isGlobal = default(string), string provisioningState = default(string), string deleteExistingPeering = default(string), SystemData systemData = default(SystemData)) + public ConnectivityConfiguration(string connectivityTopology, IList appliesToGroups, string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string description = default(string), IList hubs = default(IList), string isGlobal = default(string), string provisioningState = default(string), string deleteExistingPeering = default(string), string resourceGuid = default(string), SystemData systemData = default(SystemData)) : base(id, name, type, etag) { Description = description; @@ -64,6 +66,7 @@ public ConnectivityConfiguration() AppliesToGroups = appliesToGroups; ProvisioningState = provisioningState; DeleteExistingPeering = deleteExistingPeering; + ResourceGuid = resourceGuid; SystemData = systemData; CustomInit(); } @@ -120,6 +123,12 @@ public ConnectivityConfiguration() [JsonProperty(PropertyName = "properties.deleteExistingPeering")] public string DeleteExistingPeering { get; set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + /// /// Gets the system metadata related to this resource. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosCustomPoliciesDeleteHeaders.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosCustomPoliciesDeleteHeaders.cs new file mode 100644 index 0000000000000..ff9afda624afb --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosCustomPoliciesDeleteHeaders.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Delete operation. + /// + public partial class DdosCustomPoliciesDeleteHeaders + { + /// + /// Initializes a new instance of the DdosCustomPoliciesDeleteHeaders + /// class. + /// + public DdosCustomPoliciesDeleteHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DdosCustomPoliciesDeleteHeaders + /// class. + /// + /// The URL of the resource used to check the + /// status of the asynchronous operation. + public DdosCustomPoliciesDeleteHeaders(string location = default(string)) + { + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the URL of the resource used to check the status of + /// the asynchronous operation. + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DefaultAdminRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DefaultAdminRule.cs index 162c6068c4e37..d3743541ff9b2 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DefaultAdminRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DefaultAdminRule.cs @@ -67,7 +67,9 @@ public DefaultAdminRule() /// The provisioning state of the /// resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed' - public DefaultAdminRule(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), SystemData systemData = default(SystemData), string description = default(string), string flag = default(string), string protocol = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string access = default(string), int? priority = default(int?), string direction = default(string), string provisioningState = default(string)) + /// Unique identifier for this + /// resource. + public DefaultAdminRule(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), SystemData systemData = default(SystemData), string description = default(string), string flag = default(string), string protocol = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string access = default(string), int? priority = default(int?), string direction = default(string), string provisioningState = default(string), string resourceGuid = default(string)) : base(id, name, type, etag, systemData) { Description = description; @@ -81,6 +83,7 @@ public DefaultAdminRule() Priority = priority; Direction = direction; ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; CustomInit(); } @@ -162,5 +165,11 @@ public DefaultAdminRule() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DeleteBastionShareableLinkByTokenHeaders.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DeleteBastionShareableLinkByTokenHeaders.cs new file mode 100644 index 0000000000000..73ad2ac608de9 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DeleteBastionShareableLinkByTokenHeaders.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for DeleteBastionShareableLinkByToken operation. + /// + public partial class DeleteBastionShareableLinkByTokenHeaders + { + /// + /// Initializes a new instance of the + /// DeleteBastionShareableLinkByTokenHeaders class. + /// + public DeleteBastionShareableLinkByTokenHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// DeleteBastionShareableLinkByTokenHeaders class. + /// + public DeleteBastionShareableLinkByTokenHeaders(string location = default(string)) + { + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveConnectivityConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveConnectivityConfiguration.cs index 89cc632850d86..e1835086ee299 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveConnectivityConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveConnectivityConfiguration.cs @@ -50,9 +50,11 @@ public EffectiveConnectivityConfiguration() /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Flag if need to remove current /// existing peerings. Possible values include: 'False', 'True' + /// Unique identifier for this + /// resource. /// Effective configuration /// groups. - public EffectiveConnectivityConfiguration(string connectivityTopology, IList appliesToGroups, string id = default(string), string description = default(string), IList hubs = default(IList), string isGlobal = default(string), string provisioningState = default(string), string deleteExistingPeering = default(string), IList configurationGroups = default(IList)) + public EffectiveConnectivityConfiguration(string connectivityTopology, IList appliesToGroups, string id = default(string), string description = default(string), IList hubs = default(IList), string isGlobal = default(string), string provisioningState = default(string), string deleteExistingPeering = default(string), string resourceGuid = default(string), IList configurationGroups = default(IList)) { Id = id; Description = description; @@ -62,6 +64,7 @@ public EffectiveConnectivityConfiguration() AppliesToGroups = appliesToGroups; ProvisioningState = provisioningState; DeleteExistingPeering = deleteExistingPeering; + ResourceGuid = resourceGuid; ConfigurationGroups = configurationGroups; CustomInit(); } @@ -124,6 +127,12 @@ public EffectiveConnectivityConfiguration() [JsonProperty(PropertyName = "properties.deleteExistingPeering")] public string DeleteExistingPeering { get; set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + /// /// Gets or sets effective configuration groups. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveDefaultSecurityAdminRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveDefaultSecurityAdminRule.cs index b3d8f511e9942..18aa8b04253db 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveDefaultSecurityAdminRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveDefaultSecurityAdminRule.cs @@ -70,7 +70,9 @@ public EffectiveDefaultSecurityAdminRule() /// The provisioning state of the /// resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed' - public EffectiveDefaultSecurityAdminRule(string id = default(string), string configurationDescription = default(string), string ruleCollectionDescription = default(string), IList ruleCollectionAppliesToGroups = default(IList), IList ruleGroups = default(IList), string description = default(string), string flag = default(string), string protocol = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string access = default(string), int? priority = default(int?), string direction = default(string), string provisioningState = default(string)) + /// Unique identifier for this + /// resource. + public EffectiveDefaultSecurityAdminRule(string id = default(string), string configurationDescription = default(string), string ruleCollectionDescription = default(string), IList ruleCollectionAppliesToGroups = default(IList), IList ruleGroups = default(IList), string description = default(string), string flag = default(string), string protocol = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string access = default(string), int? priority = default(int?), string direction = default(string), string provisioningState = default(string), string resourceGuid = default(string)) : base(id, configurationDescription, ruleCollectionDescription, ruleCollectionAppliesToGroups, ruleGroups) { Description = description; @@ -84,6 +86,7 @@ public EffectiveDefaultSecurityAdminRule() Priority = priority; Direction = direction; ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; CustomInit(); } @@ -165,5 +168,11 @@ public EffectiveDefaultSecurityAdminRule() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveRouteMapRoute.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveRouteMapRoute.cs index 8b00f56e16abb..c9270c4802099 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveRouteMapRoute.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveRouteMapRoute.cs @@ -11,8 +11,6 @@ namespace Microsoft.Azure.Management.Network.Models { using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// @@ -34,7 +32,7 @@ public EffectiveRouteMapRoute() /// The address prefix of the route. /// BGP communities of the route. /// The ASPath of this route. - public EffectiveRouteMapRoute(IList prefix = default(IList), string bgpCommunities = default(string), string asPath = default(string)) + public EffectiveRouteMapRoute(string prefix = default(string), string bgpCommunities = default(string), string asPath = default(string)) { Prefix = prefix; BgpCommunities = bgpCommunities; @@ -51,7 +49,7 @@ public EffectiveRouteMapRoute() /// Gets or sets the address prefix of the route. /// [JsonProperty(PropertyName = "prefix")] - public IList Prefix { get; set; } + public string Prefix { get; set; } /// /// Gets or sets BGP communities of the route. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PeerRouteList.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveRouteMapRouteList.cs similarity index 59% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PeerRouteList.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveRouteMapRouteList.cs index 75053c903f079..de9b4ccd18a0c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PeerRouteList.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveRouteMapRouteList.cs @@ -16,23 +16,24 @@ namespace Microsoft.Azure.Management.Network.Models using System.Linq; /// - /// List of virtual router peer routes. + /// EffectiveRouteMapRoute List. /// - public partial class PeerRouteList + public partial class EffectiveRouteMapRouteList { /// - /// Initializes a new instance of the PeerRouteList class. + /// Initializes a new instance of the EffectiveRouteMapRouteList class. /// - public PeerRouteList() + public EffectiveRouteMapRouteList() { CustomInit(); } /// - /// Initializes a new instance of the PeerRouteList class. + /// Initializes a new instance of the EffectiveRouteMapRouteList class. /// - /// List of peer routes. - public PeerRouteList(IList value = default(IList)) + /// The list of Effective RouteMap Routes + /// configured on the connection resource. + public EffectiveRouteMapRouteList(IList value = default(IList)) { Value = value; CustomInit(); @@ -44,10 +45,11 @@ public PeerRouteList() partial void CustomInit(); /// - /// Gets or sets list of peer routes. + /// Gets or sets the list of Effective RouteMap Routes configured on + /// the connection resource. /// [JsonProperty(PropertyName = "value")] - public IList Value { get; set; } + public IList Value { get; set; } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveSecurityAdminRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveSecurityAdminRule.cs index 28034046bdd07..716d7e11c6302 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveSecurityAdminRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EffectiveSecurityAdminRule.cs @@ -67,7 +67,9 @@ public EffectiveSecurityAdminRule() /// The provisioning state of the /// resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed' - public EffectiveSecurityAdminRule(string protocol, string access, int priority, string direction, string id = default(string), string configurationDescription = default(string), string ruleCollectionDescription = default(string), IList ruleCollectionAppliesToGroups = default(IList), IList ruleGroups = default(IList), string description = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string provisioningState = default(string)) + /// Unique identifier for this + /// resource. + public EffectiveSecurityAdminRule(string protocol, string access, int priority, string direction, string id = default(string), string configurationDescription = default(string), string ruleCollectionDescription = default(string), IList ruleCollectionAppliesToGroups = default(IList), IList ruleGroups = default(IList), string description = default(string), IList sources = default(IList), IList destinations = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string provisioningState = default(string), string resourceGuid = default(string)) : base(id, configurationDescription, ruleCollectionDescription, ruleCollectionAppliesToGroups, ruleGroups) { Description = description; @@ -80,6 +82,7 @@ public EffectiveSecurityAdminRule() Priority = priority; Direction = direction; ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; CustomInit(); } @@ -156,6 +159,12 @@ public EffectiveSecurityAdminRule() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EndpointType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EndpointType.cs index afa465a9df977..778e7fe389f5e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EndpointType.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/EndpointType.cs @@ -24,5 +24,6 @@ public static class EndpointType public const string MMAWorkspaceNetwork = "MMAWorkspaceNetwork"; public const string AzureArcVM = "AzureArcVM"; public const string AzureVMSS = "AzureVMSS"; + public const string AzureArcNetwork = "AzureArcNetwork"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuit.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuit.cs index 9412967626b8b..62a9920c34f06 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuit.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuit.cs @@ -71,9 +71,11 @@ public ExpressRouteCircuit() /// The authorizationKey. /// The authorization status of the /// Circuit. + /// Flag denoting rate-limiting + /// status of the ExpressRoute direct-port circuit. /// A unique read-only string that changes whenever /// the resource is updated. - public ExpressRouteCircuit(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExpressRouteCircuitSku sku = default(ExpressRouteCircuitSku), bool? allowClassicOperations = default(bool?), string circuitProvisioningState = default(string), string serviceProviderProvisioningState = default(string), IList authorizations = default(IList), IList peerings = default(IList), string serviceKey = default(string), string serviceProviderNotes = default(string), ExpressRouteCircuitServiceProviderProperties serviceProviderProperties = default(ExpressRouteCircuitServiceProviderProperties), SubResource expressRoutePort = default(SubResource), double? bandwidthInGbps = default(double?), int? stag = default(int?), string provisioningState = default(string), string gatewayManagerEtag = default(string), bool? globalReachEnabled = default(bool?), string authorizationKey = default(string), string authorizationStatus = default(string), string etag = default(string)) + public ExpressRouteCircuit(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExpressRouteCircuitSku sku = default(ExpressRouteCircuitSku), bool? allowClassicOperations = default(bool?), string circuitProvisioningState = default(string), string serviceProviderProvisioningState = default(string), IList authorizations = default(IList), IList peerings = default(IList), string serviceKey = default(string), string serviceProviderNotes = default(string), ExpressRouteCircuitServiceProviderProperties serviceProviderProperties = default(ExpressRouteCircuitServiceProviderProperties), SubResource expressRoutePort = default(SubResource), double? bandwidthInGbps = default(double?), int? stag = default(int?), string provisioningState = default(string), string gatewayManagerEtag = default(string), bool? globalReachEnabled = default(bool?), string authorizationKey = default(string), string authorizationStatus = default(string), bool? enableDirectPortRateLimit = default(bool?), string etag = default(string)) : base(id, name, type, location, tags) { Sku = sku; @@ -93,6 +95,7 @@ public ExpressRouteCircuit() GlobalReachEnabled = globalReachEnabled; AuthorizationKey = authorizationKey; AuthorizationStatus = authorizationStatus; + EnableDirectPortRateLimit = enableDirectPortRateLimit; Etag = etag; CustomInit(); } @@ -211,6 +214,13 @@ public ExpressRouteCircuit() [JsonProperty(PropertyName = "properties.authorizationStatus")] public string AuthorizationStatus { get; private set; } + /// + /// Gets or sets flag denoting rate-limiting status of the ExpressRoute + /// direct-port circuit. + /// + [JsonProperty(PropertyName = "properties.enableDirectPortRateLimit")] + public bool? EnableDirectPortRateLimit { get; set; } + /// /// Gets a unique read-only string that changes whenever the resource /// is updated. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPacketCaptureParameters.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPacketCaptureParameters.cs new file mode 100644 index 0000000000000..9110a7769152b --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPacketCaptureParameters.cs @@ -0,0 +1,140 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Azure Firewall Packet Capture Parameters resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class FirewallPacketCaptureParameters : SubResource + { + /// + /// Initializes a new instance of the FirewallPacketCaptureParameters + /// class. + /// + public FirewallPacketCaptureParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FirewallPacketCaptureParameters + /// class. + /// + /// Resource ID. + /// Duration of packet capture in + /// seconds. + /// Number of packets to be + /// captured. + /// Upload capture location + /// Name of file to be uploaded to + /// sasURL + /// The protocol of packets to capture. Possible + /// values include: 'TCP', 'UDP', 'Any', 'ICMP' + /// The tcp-flag type to be captured. Used with + /// protocol TCP + /// Rules to filter packet captures. + public FirewallPacketCaptureParameters(string id = default(string), int? durationInSeconds = default(int?), int? numberOfPacketsToCapture = default(int?), string sasUrl = default(string), string fileName = default(string), string protocol = default(string), IList flags = default(IList), IList filters = default(IList)) + : base(id) + { + DurationInSeconds = durationInSeconds; + NumberOfPacketsToCapture = numberOfPacketsToCapture; + SasUrl = sasUrl; + FileName = fileName; + Protocol = protocol; + Flags = flags; + Filters = filters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets duration of packet capture in seconds. + /// + [JsonProperty(PropertyName = "properties.durationInSeconds")] + public int? DurationInSeconds { get; set; } + + /// + /// Gets or sets number of packets to be captured. + /// + [JsonProperty(PropertyName = "properties.numberOfPacketsToCapture")] + public int? NumberOfPacketsToCapture { get; set; } + + /// + /// Gets or sets upload capture location + /// + [JsonProperty(PropertyName = "properties.sasUrl")] + public string SasUrl { get; set; } + + /// + /// Gets or sets name of file to be uploaded to sasURL + /// + [JsonProperty(PropertyName = "properties.fileName")] + public string FileName { get; set; } + + /// + /// Gets or sets the protocol of packets to capture. Possible values + /// include: 'TCP', 'UDP', 'Any', 'ICMP' + /// + [JsonProperty(PropertyName = "properties.protocol")] + public string Protocol { get; set; } + + /// + /// Gets or sets the tcp-flag type to be captured. Used with protocol + /// TCP + /// + [JsonProperty(PropertyName = "properties.flags")] + public IList Flags { get; set; } + + /// + /// Gets or sets rules to filter packet captures. + /// + [JsonProperty(PropertyName = "properties.filters")] + public IList Filters { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DurationInSeconds > 1800) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "DurationInSeconds", 1800); + } + if (DurationInSeconds < 30) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "DurationInSeconds", 30); + } + if (NumberOfPacketsToCapture > 90000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "NumberOfPacketsToCapture", 90000); + } + if (NumberOfPacketsToCapture < 100) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "NumberOfPacketsToCapture", 100); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs index e54798f09b13f..4b2ff130fd447 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs @@ -39,6 +39,8 @@ public FirewallPolicy() /// Resource type. /// Resource location. /// Resource tags. + /// A read-only string that represents the size of + /// the FirewallPolicyPropertiesFormat in MB. (ex 0.5MB) /// List of references to /// FirewallPolicyRuleCollectionGroups. /// The provisioning state of the @@ -70,9 +72,10 @@ public FirewallPolicy() /// A unique read-only string that changes whenever /// the resource is updated. /// The identity of the firewall policy. - public FirewallPolicy(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ruleCollectionGroups = default(IList), string provisioningState = default(string), SubResource basePolicy = default(SubResource), IList firewalls = default(IList), IList childPolicies = default(IList), string threatIntelMode = default(string), FirewallPolicyThreatIntelWhitelist threatIntelWhitelist = default(FirewallPolicyThreatIntelWhitelist), FirewallPolicyInsights insights = default(FirewallPolicyInsights), FirewallPolicySNAT snat = default(FirewallPolicySNAT), FirewallPolicySQL sql = default(FirewallPolicySQL), DnsSettings dnsSettings = default(DnsSettings), ExplicitProxy explicitProxy = default(ExplicitProxy), FirewallPolicyIntrusionDetection intrusionDetection = default(FirewallPolicyIntrusionDetection), FirewallPolicyTransportSecurity transportSecurity = default(FirewallPolicyTransportSecurity), FirewallPolicySku sku = default(FirewallPolicySku), string etag = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) + public FirewallPolicy(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string size = default(string), IList ruleCollectionGroups = default(IList), string provisioningState = default(string), SubResource basePolicy = default(SubResource), IList firewalls = default(IList), IList childPolicies = default(IList), string threatIntelMode = default(string), FirewallPolicyThreatIntelWhitelist threatIntelWhitelist = default(FirewallPolicyThreatIntelWhitelist), FirewallPolicyInsights insights = default(FirewallPolicyInsights), FirewallPolicySNAT snat = default(FirewallPolicySNAT), FirewallPolicySQL sql = default(FirewallPolicySQL), DnsSettings dnsSettings = default(DnsSettings), ExplicitProxy explicitProxy = default(ExplicitProxy), FirewallPolicyIntrusionDetection intrusionDetection = default(FirewallPolicyIntrusionDetection), FirewallPolicyTransportSecurity transportSecurity = default(FirewallPolicyTransportSecurity), FirewallPolicySku sku = default(FirewallPolicySku), string etag = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) : base(id, name, type, location, tags) { + Size = size; RuleCollectionGroups = ruleCollectionGroups; ProvisioningState = provisioningState; BasePolicy = basePolicy; @@ -98,6 +101,13 @@ public FirewallPolicy() /// partial void CustomInit(); + /// + /// Gets a read-only string that represents the size of the + /// FirewallPolicyPropertiesFormat in MB. (ex 0.5MB) + /// + [JsonProperty(PropertyName = "properties.size")] + public string Size { get; private set; } + /// /// Gets list of references to FirewallPolicyRuleCollectionGroups. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyDeploymentsDeployHeaders.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyDeploymentsDeployHeaders.cs new file mode 100644 index 0000000000000..b9ef2e93bfb35 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyDeploymentsDeployHeaders.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Deploy operation. + /// + public partial class FirewallPolicyDeploymentsDeployHeaders + { + /// + /// Initializes a new instance of the + /// FirewallPolicyDeploymentsDeployHeaders class. + /// + public FirewallPolicyDeploymentsDeployHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// FirewallPolicyDeploymentsDeployHeaders class. + /// + /// URL to get the status of the + /// operation. + /// URL to get the status of the + /// operation. + public FirewallPolicyDeploymentsDeployHeaders(string location = default(string), string azureAsyncOperation = default(string)) + { + Location = location; + AzureAsyncOperation = azureAsyncOperation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets URL to get the status of the operation. + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets URL to get the status of the operation. + /// + [JsonProperty(PropertyName = "Azure-AsyncOperation")] + public string AzureAsyncOperation { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyDraft.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyDraft.cs new file mode 100644 index 0000000000000..d7407f2909519 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyDraft.cs @@ -0,0 +1,149 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// FirewallPolicy Resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class FirewallPolicyDraft : Resource + { + /// + /// Initializes a new instance of the FirewallPolicyDraft class. + /// + public FirewallPolicyDraft() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FirewallPolicyDraft class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource location. + /// Resource tags. + /// The parent firewall policy from which + /// rules are inherited. + /// The operation mode for Threat + /// Intelligence. Possible values include: 'Alert', 'Deny', + /// 'Off' + /// ThreatIntel Whitelist for + /// Firewall Policy. + /// Insights on Firewall Policy. + /// The private IP addresses/IP ranges to which + /// traffic will not be SNAT. + /// SQL Settings definition. + /// DNS Proxy Settings definition. + /// Explicit Proxy Settings + /// definition. + /// The configuration for Intrusion + /// detection. + public FirewallPolicyDraft(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), SubResource basePolicy = default(SubResource), string threatIntelMode = default(string), FirewallPolicyThreatIntelWhitelist threatIntelWhitelist = default(FirewallPolicyThreatIntelWhitelist), FirewallPolicyInsights insights = default(FirewallPolicyInsights), FirewallPolicySNAT snat = default(FirewallPolicySNAT), FirewallPolicySQL sql = default(FirewallPolicySQL), DnsSettings dnsSettings = default(DnsSettings), ExplicitProxy explicitProxy = default(ExplicitProxy), FirewallPolicyIntrusionDetection intrusionDetection = default(FirewallPolicyIntrusionDetection)) + : base(id, name, type, location, tags) + { + BasePolicy = basePolicy; + ThreatIntelMode = threatIntelMode; + ThreatIntelWhitelist = threatIntelWhitelist; + Insights = insights; + Snat = snat; + Sql = sql; + DnsSettings = dnsSettings; + ExplicitProxy = explicitProxy; + IntrusionDetection = intrusionDetection; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the parent firewall policy from which rules are + /// inherited. + /// + [JsonProperty(PropertyName = "properties.basePolicy")] + public SubResource BasePolicy { get; set; } + + /// + /// Gets or sets the operation mode for Threat Intelligence. Possible + /// values include: 'Alert', 'Deny', 'Off' + /// + [JsonProperty(PropertyName = "properties.threatIntelMode")] + public string ThreatIntelMode { get; set; } + + /// + /// Gets or sets threatIntel Whitelist for Firewall Policy. + /// + [JsonProperty(PropertyName = "properties.threatIntelWhitelist")] + public FirewallPolicyThreatIntelWhitelist ThreatIntelWhitelist { get; set; } + + /// + /// Gets or sets insights on Firewall Policy. + /// + [JsonProperty(PropertyName = "properties.insights")] + public FirewallPolicyInsights Insights { get; set; } + + /// + /// Gets or sets the private IP addresses/IP ranges to which traffic + /// will not be SNAT. + /// + [JsonProperty(PropertyName = "properties.snat")] + public FirewallPolicySNAT Snat { get; set; } + + /// + /// Gets or sets SQL Settings definition. + /// + [JsonProperty(PropertyName = "properties.sql")] + public FirewallPolicySQL Sql { get; set; } + + /// + /// Gets or sets DNS Proxy Settings definition. + /// + [JsonProperty(PropertyName = "properties.dnsSettings")] + public DnsSettings DnsSettings { get; set; } + + /// + /// Gets or sets explicit Proxy Settings definition. + /// + [JsonProperty(PropertyName = "properties.explicitProxy")] + public ExplicitProxy ExplicitProxy { get; set; } + + /// + /// Gets or sets the configuration for Intrusion detection. + /// + [JsonProperty(PropertyName = "properties.intrusionDetection")] + public FirewallPolicyIntrusionDetection IntrusionDetection { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ExplicitProxy != null) + { + ExplicitProxy.Validate(); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyHttpHeaderToInsert.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyHttpHeaderToInsert.cs new file mode 100644 index 0000000000000..457ba0b1524b3 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyHttpHeaderToInsert.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// name and value of HTTP/S header to insert + /// + public partial class FirewallPolicyHttpHeaderToInsert + { + /// + /// Initializes a new instance of the FirewallPolicyHttpHeaderToInsert + /// class. + /// + public FirewallPolicyHttpHeaderToInsert() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FirewallPolicyHttpHeaderToInsert + /// class. + /// + /// Contains the name of the header + /// Contains the value of the header + public FirewallPolicyHttpHeaderToInsert(string headerName = default(string), string headerValue = default(string)) + { + HeaderName = headerName; + HeaderValue = headerValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets contains the name of the header + /// + [JsonProperty(PropertyName = "headerName")] + public string HeaderName { get; set; } + + /// + /// Gets or sets contains the value of the header + /// + [JsonProperty(PropertyName = "headerValue")] + public string HeaderValue { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyIntrusionDetection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyIntrusionDetection.cs index b452a9ef4666a..0302b94153358 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyIntrusionDetection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyIntrusionDetection.cs @@ -31,13 +31,20 @@ public FirewallPolicyIntrusionDetection() /// Initializes a new instance of the FirewallPolicyIntrusionDetection /// class. /// - /// Intrusion detection general state. Possible - /// values include: 'Off', 'Alert', 'Deny' + /// Intrusion detection general state. When attached + /// to a parent policy, the firewall's effective IDPS mode is the + /// stricter mode of the two. Possible values include: 'Off', 'Alert', + /// 'Deny' + /// IDPS profile name. When attached to a parent + /// policy, the firewall's effective profile is the profile name of the + /// parent policy. Possible values include: 'Basic', 'Standard', + /// 'Advanced', 'Extended' /// Intrusion detection configuration /// properties. - public FirewallPolicyIntrusionDetection(string mode = default(string), FirewallPolicyIntrusionDetectionConfiguration configuration = default(FirewallPolicyIntrusionDetectionConfiguration)) + public FirewallPolicyIntrusionDetection(string mode = default(string), string profile = default(string), FirewallPolicyIntrusionDetectionConfiguration configuration = default(FirewallPolicyIntrusionDetectionConfiguration)) { Mode = mode; + Profile = profile; Configuration = configuration; CustomInit(); } @@ -48,12 +55,22 @@ public FirewallPolicyIntrusionDetection() partial void CustomInit(); /// - /// Gets or sets intrusion detection general state. Possible values - /// include: 'Off', 'Alert', 'Deny' + /// Gets or sets intrusion detection general state. When attached to a + /// parent policy, the firewall's effective IDPS mode is the stricter + /// mode of the two. Possible values include: 'Off', 'Alert', 'Deny' /// [JsonProperty(PropertyName = "mode")] public string Mode { get; set; } + /// + /// Gets or sets IDPS profile name. When attached to a parent policy, + /// the firewall's effective profile is the profile name of the parent + /// policy. Possible values include: 'Basic', 'Standard', 'Advanced', + /// 'Extended' + /// + [JsonProperty(PropertyName = "profile")] + public string Profile { get; set; } + /// /// Gets or sets intrusion detection configuration properties. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyIntrusionDetectionProfileType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyIntrusionDetectionProfileType.cs new file mode 100644 index 0000000000000..f1e90325e9ea3 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyIntrusionDetectionProfileType.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for FirewallPolicyIntrusionDetectionProfileType. + /// + public static class FirewallPolicyIntrusionDetectionProfileType + { + public const string Basic = "Basic"; + public const string Standard = "Standard"; + public const string Advanced = "Advanced"; + public const string Extended = "Extended"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroup.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroup.cs index b417d38a1e8c3..1c9fbe309f075 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroup.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroup.cs @@ -37,6 +37,9 @@ public FirewallPolicyRuleCollectionGroup() /// class. /// /// Resource ID. + /// A read-only string that represents the size of + /// the FirewallPolicyRuleCollectionGroupProperties in MB. (ex + /// 1.2MB) /// Priority of the Firewall Policy Rule /// Collection Group resource. /// Group of Firewall Policy rule @@ -50,9 +53,10 @@ public FirewallPolicyRuleCollectionGroup() /// A unique read-only string that changes whenever /// the resource is updated. /// Rule Group type. - public FirewallPolicyRuleCollectionGroup(string id = default(string), int? priority = default(int?), IList ruleCollections = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) + public FirewallPolicyRuleCollectionGroup(string id = default(string), string size = default(string), int? priority = default(int?), IList ruleCollections = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { + Size = size; Priority = priority; RuleCollections = ruleCollections; ProvisioningState = provisioningState; @@ -67,6 +71,13 @@ public FirewallPolicyRuleCollectionGroup() /// partial void CustomInit(); + /// + /// Gets a read-only string that represents the size of the + /// FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB) + /// + [JsonProperty(PropertyName = "properties.size")] + public string Size { get; private set; } + /// /// Gets or sets priority of the Firewall Policy Rule Collection Group /// resource. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroupDraft.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroupDraft.cs new file mode 100644 index 0000000000000..c92a5998693ab --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroupDraft.cs @@ -0,0 +1,128 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Rule Collection Group resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class FirewallPolicyRuleCollectionGroupDraft : SubResource + { + /// + /// Initializes a new instance of the + /// FirewallPolicyRuleCollectionGroupDraft class. + /// + public FirewallPolicyRuleCollectionGroupDraft() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// FirewallPolicyRuleCollectionGroupDraft class. + /// + /// Resource ID. + /// A read-only string that represents the size of + /// the FirewallPolicyRuleCollectionGroupProperties in MB. (ex + /// 1.2MB) + /// Priority of the Firewall Policy Rule + /// Collection Group resource. + /// Group of Firewall Policy rule + /// collections. + /// The name of the resource that is unique within a + /// resource group. This name can be used to access the + /// resource. + /// Rule Group type. + public FirewallPolicyRuleCollectionGroupDraft(string id = default(string), string size = default(string), int? priority = default(int?), IList ruleCollections = default(IList), string name = default(string), string type = default(string)) + : base(id) + { + Size = size; + Priority = priority; + RuleCollections = ruleCollections; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets a read-only string that represents the size of the + /// FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB) + /// + [JsonProperty(PropertyName = "properties.size")] + public string Size { get; private set; } + + /// + /// Gets or sets priority of the Firewall Policy Rule Collection Group + /// resource. + /// + [JsonProperty(PropertyName = "properties.priority")] + public int? Priority { get; set; } + + /// + /// Gets or sets group of Firewall Policy rule collections. + /// + [JsonProperty(PropertyName = "properties.ruleCollections")] + public IList RuleCollections { get; set; } + + /// + /// Gets or sets the name of the resource that is unique within a + /// resource group. This name can be used to access the resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets rule Group type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Priority > 65000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000); + } + if (Priority < 100) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100); + } + if (RuleCollections != null) + { + foreach (var element in RuleCollections) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLog.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLog.cs index fe3b92106b7b3..8bd337dff2b4b 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLog.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLog.cs @@ -57,7 +57,8 @@ public FlowLog() /// 'Failed' /// A unique read-only string that changes whenever /// the resource is updated. - public FlowLog(string targetResourceId, string storageId, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string targetResourceGuid = default(string), bool? enabled = default(bool?), RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters), TrafficAnalyticsProperties flowAnalyticsConfiguration = default(TrafficAnalyticsProperties), string provisioningState = default(string), string etag = default(string)) + /// FlowLog resource Managed Identity + public FlowLog(string targetResourceId, string storageId, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string targetResourceGuid = default(string), bool? enabled = default(bool?), RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters), TrafficAnalyticsProperties flowAnalyticsConfiguration = default(TrafficAnalyticsProperties), string provisioningState = default(string), string etag = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) : base(id, name, type, location, tags) { TargetResourceId = targetResourceId; @@ -69,6 +70,7 @@ public FlowLog() FlowAnalyticsConfiguration = flowAnalyticsConfiguration; ProvisioningState = provisioningState; Etag = etag; + Identity = identity; CustomInit(); } @@ -138,6 +140,12 @@ public FlowLog() [JsonProperty(PropertyName = "etag")] public string Etag { get; private set; } + /// + /// Gets or sets flowLog resource Managed Identity + /// + [JsonProperty(PropertyName = "identity")] + public ManagedServiceIdentity Identity { get; set; } + /// /// Validate the object. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLogInformation.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLogInformation.cs index 1605774c944ab..52e2ff5baa433 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLogInformation.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLogInformation.cs @@ -44,7 +44,8 @@ public FlowLogInformation() /// format. /// Parameters that define the /// configuration of traffic analytics. - public FlowLogInformation(string targetResourceId, string storageId, bool enabled, RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters), TrafficAnalyticsProperties flowAnalyticsConfiguration = default(TrafficAnalyticsProperties)) + /// FlowLog resource Managed Identity + public FlowLogInformation(string targetResourceId, string storageId, bool enabled, RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters), TrafficAnalyticsProperties flowAnalyticsConfiguration = default(TrafficAnalyticsProperties), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) { TargetResourceId = targetResourceId; StorageId = storageId; @@ -52,6 +53,7 @@ public FlowLogInformation() RetentionPolicy = retentionPolicy; Format = format; FlowAnalyticsConfiguration = flowAnalyticsConfiguration; + Identity = identity; CustomInit(); } @@ -100,6 +102,12 @@ public FlowLogInformation() [JsonProperty(PropertyName = "flowAnalyticsConfiguration")] public TrafficAnalyticsProperties FlowAnalyticsConfiguration { get; set; } + /// + /// Gets or sets flowLog resource Managed Identity + /// + [JsonProperty(PropertyName = "identity")] + public ManagedServiceIdentity Identity { get; set; } + /// /// Validate the object. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIPConfiguration.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIpConfiguration.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIPConfiguration.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/GroupByUserSession.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/GroupByUserSession.cs new file mode 100644 index 0000000000000..9d8db6b5436ad --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/GroupByUserSession.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Define user session identifier group by clauses. + /// + public partial class GroupByUserSession + { + /// + /// Initializes a new instance of the GroupByUserSession class. + /// + public GroupByUserSession() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GroupByUserSession class. + /// + /// List of group by clause + /// variables. + public GroupByUserSession(IList groupByVariables) + { + GroupByVariables = groupByVariables; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of group by clause variables. + /// + [JsonProperty(PropertyName = "groupByVariables")] + public IList GroupByVariables { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (GroupByVariables == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "GroupByVariables"); + } + if (GroupByVariables != null) + { + foreach (var element in GroupByVariables) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/GroupByVariable.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/GroupByVariable.cs new file mode 100644 index 0000000000000..5493e4872f1d4 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/GroupByVariable.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Define user session group by clause variables. + /// + public partial class GroupByVariable + { + /// + /// Initializes a new instance of the GroupByVariable class. + /// + public GroupByVariable() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GroupByVariable class. + /// + /// User Session clause variable. Possible + /// values include: 'ClientAddr', 'GeoLocation', 'None' + public GroupByVariable(string variableName) + { + VariableName = variableName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets user Session clause variable. Possible values include: + /// 'ClientAddr', 'GeoLocation', 'None' + /// + [JsonProperty(PropertyName = "variableName")] + public string VariableName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (VariableName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "VariableName"); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HeaderValueMatcher.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HeaderValueMatcher.cs new file mode 100644 index 0000000000000..001d1da572a9e --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HeaderValueMatcher.cs @@ -0,0 +1,79 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// An optional field under "Rewrite Action". It lets you capture and + /// modify the value(s) of a specific header when multiple headers with the + /// same name exist. Currently supported for Set-Cookie Response header + /// only. For more details, visit https://aka.ms/appgwheadercrud + /// + public partial class HeaderValueMatcher + { + /// + /// Initializes a new instance of the HeaderValueMatcher class. + /// + public HeaderValueMatcher() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the HeaderValueMatcher class. + /// + /// The pattern, either fixed string or regular + /// expression, that evaluates if a header value should be selected for + /// rewrite. + /// Setting this parameter to truth value with + /// force the pattern to do a case in-sensitive comparison. + /// Setting this value as truth will force to + /// check the negation of the condition given by the user in the + /// pattern field. + public HeaderValueMatcher(string pattern = default(string), bool? ignoreCase = default(bool?), bool? negate = default(bool?)) + { + Pattern = pattern; + IgnoreCase = ignoreCase; + Negate = negate; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the pattern, either fixed string or regular + /// expression, that evaluates if a header value should be selected for + /// rewrite. + /// + [JsonProperty(PropertyName = "pattern")] + public string Pattern { get; set; } + + /// + /// Gets or sets setting this parameter to truth value with force the + /// pattern to do a case in-sensitive comparison. + /// + [JsonProperty(PropertyName = "ignoreCase")] + public bool? IgnoreCase { get; set; } + + /// + /// Gets or sets setting this value as truth will force to check the + /// negation of the condition given by the user in the pattern field. + /// + [JsonProperty(PropertyName = "negate")] + public bool? Negate { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IpAllocationMethod.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPAllocationMethod.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IpAllocationMethod.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPAllocationMethod.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPRule.cs new file mode 100644 index 0000000000000..ecffa1329407a --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPRule.cs @@ -0,0 +1,50 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class IPRule + { + /// + /// Initializes a new instance of the IPRule class. + /// + public IPRule() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IPRule class. + /// + /// Specifies the IP or IP range in CIDR + /// format. Only IPV4 address is allowed. + public IPRule(string addressPrefix = default(string)) + { + AddressPrefix = addressPrefix; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies the IP or IP range in CIDR format. Only IPV4 + /// address is allowed. + /// + [JsonProperty(PropertyName = "addressPrefix")] + public string AddressPrefix { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatRule.cs index 0b3e1fd64a2c7..d5c31ea84e733 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatRule.cs @@ -225,5 +225,18 @@ public InboundNatRule() [JsonProperty(PropertyName = "type")] public string Type { get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (BackendIPConfiguration != null) + { + BackendIPConfiguration.Validate(); + } + } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRule.cs index fc607a5a81608..ad7518bd1ce77 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRule.cs @@ -35,6 +35,10 @@ public InboundSecurityRule() /// Initializes a new instance of the InboundSecurityRule class. /// /// Resource ID. + /// Rule Type. This should be either AutoExpire + /// or Permanent. Auto Expire Rule only creates NSG rules. Permanent + /// Rule creates NSG rule and SLB LB Rule. Possible values include: + /// 'AutoExpire', 'Permanent' /// List of allowed rules. /// The provisioning state of the /// resource. Possible values include: 'Succeeded', 'Updating', @@ -43,9 +47,10 @@ public InboundSecurityRule() /// A unique read-only string that changes whenever /// the resource is updated. /// NVA inbound security rule type. - public InboundSecurityRule(string id = default(string), IList rules = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) + public InboundSecurityRule(string id = default(string), string ruleType = default(string), IList rules = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { + RuleType = ruleType; Rules = rules; ProvisioningState = provisioningState; Name = name; @@ -59,6 +64,15 @@ public InboundSecurityRule() /// partial void CustomInit(); + /// + /// Gets or sets rule Type. This should be either AutoExpire or + /// Permanent. Auto Expire Rule only creates NSG rules. Permanent Rule + /// creates NSG rule and SLB LB Rule. Possible values include: + /// 'AutoExpire', 'Permanent' + /// + [JsonProperty(PropertyName = "properties.ruleType")] + public string RuleType { get; set; } + /// /// Gets or sets list of allowed rules. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRuleType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRuleType.cs new file mode 100644 index 0000000000000..3dc32afa0a1ba --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRuleType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for InboundSecurityRuleType. + /// + public static class InboundSecurityRuleType + { + public const string AutoExpire = "AutoExpire"; + public const string Permanent = "Permanent"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRules.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRules.cs index be9f44b217ffd..31210f42e477c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRules.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRules.cs @@ -12,6 +12,8 @@ namespace Microsoft.Azure.Management.Network.Models { using Microsoft.Rest; using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -30,17 +32,26 @@ public InboundSecurityRules() /// /// Initializes a new instance of the InboundSecurityRules class. /// + /// Name of the rule. /// Protocol. This should be either TCP or UDP. /// Possible values include: 'TCP', 'UDP' - /// The CIDR or source IP range. Only - /// /30, /31 and /32 Ip ranges are allowed. + /// The CIDR or source IP + /// range. /// NVA port ranges to be opened up. /// One needs to provide specific ports. - public InboundSecurityRules(string protocol = default(string), string sourceAddressPrefix = default(string), int? destinationPortRange = default(int?)) + /// NVA port ranges to be opened + /// up. One can provide a range of ports. Allowed port value between 0 + /// and 65535. + /// Public IP name in case of Permanent Rule + /// type & Interface Name in case of Auto Expire Rule type + public InboundSecurityRules(string name = default(string), string protocol = default(string), string sourceAddressPrefix = default(string), int? destinationPortRange = default(int?), IList destinationPortRanges = default(IList), IList appliesOn = default(IList)) { + Name = name; Protocol = protocol; SourceAddressPrefix = sourceAddressPrefix; DestinationPortRange = destinationPortRange; + DestinationPortRanges = destinationPortRanges; + AppliesOn = appliesOn; CustomInit(); } @@ -49,6 +60,12 @@ public InboundSecurityRules() /// partial void CustomInit(); + /// + /// Gets or sets name of the rule. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + /// /// Gets or sets protocol. This should be either TCP or UDP. Possible /// values include: 'TCP', 'UDP' @@ -57,8 +74,7 @@ public InboundSecurityRules() public string Protocol { get; set; } /// - /// Gets or sets the CIDR or source IP range. Only /30, /31 and /32 Ip - /// ranges are allowed. + /// Gets or sets the CIDR or source IP range. /// [JsonProperty(PropertyName = "sourceAddressPrefix")] public string SourceAddressPrefix { get; set; } @@ -70,6 +86,20 @@ public InboundSecurityRules() [JsonProperty(PropertyName = "destinationPortRange")] public int? DestinationPortRange { get; set; } + /// + /// Gets or sets NVA port ranges to be opened up. One can provide a + /// range of ports. Allowed port value between 0 and 65535. + /// + [JsonProperty(PropertyName = "destinationPortRanges")] + public IList DestinationPortRanges { get; set; } + + /// + /// Gets or sets public IP name in case of Permanent Rule type + /// &amp; Interface Name in case of Auto Expire Rule type + /// + [JsonProperty(PropertyName = "appliesOn")] + public IList AppliesOn { get; set; } + /// /// Validate the object. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InternetIngressPublicIpsProperties.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InternetIngressPublicIpsProperties.cs new file mode 100644 index 0000000000000..c50929cd2c897 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InternetIngressPublicIpsProperties.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Internet Ingress Public Ip Properties + /// + /// + /// Resource Uri of Public Ip for Standard Load Balancer Frontend End. + /// + public partial class InternetIngressPublicIpsProperties + { + /// + /// Initializes a new instance of the + /// InternetIngressPublicIpsProperties class. + /// + public InternetIngressPublicIpsProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InternetIngressPublicIpsProperties class. + /// + /// Resource Uri of Public Ip + public InternetIngressPublicIpsProperties(string id = default(string)) + { + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource Uri of Public Ip + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddress.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddress.cs index 09b7d56c74920..de5f931c2401c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddress.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddress.cs @@ -50,7 +50,7 @@ public LoadBalancerBackendAddress() /// set can override health probe so that Load Balancer will always /// forward new connections to backend, or deny new connections and /// reset existing connections. Possible values include: 'None', 'Up', - /// 'Down', 'Drain' + /// 'Down' /// Name of the backend address. public LoadBalancerBackendAddress(SubResource virtualNetwork = default(SubResource), SubResource subnet = default(SubResource), string ipAddress = default(string), SubResource networkInterfaceIPConfiguration = default(SubResource), SubResource loadBalancerFrontendIPConfiguration = default(SubResource), IList inboundNatRulesPortMapping = default(IList), string adminState = default(string), string name = default(string)) { @@ -112,7 +112,7 @@ public LoadBalancerBackendAddress() /// Gets or sets a list of administrative states which once set can /// override health probe so that Load Balancer will always forward new /// connections to backend, or deny new connections and reset existing - /// connections. Possible values include: 'None', 'Up', 'Down', 'Drain' + /// connections. Possible values include: 'None', 'Up', 'Down' /// [JsonProperty(PropertyName = "properties.adminState")] public string AdminState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddressAdminState.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddressAdminState.cs index 0cbe9f0104f06..9a18bb62f86b5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddressAdminState.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddressAdminState.cs @@ -19,6 +19,5 @@ public static class LoadBalancerBackendAddressAdminState public const string None = "None"; public const string Up = "Up"; public const string Down = "Down"; - public const string Drain = "Drain"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleOverride.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleOverride.cs index 0d0f5b3e77727..5749a2e545565 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleOverride.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleOverride.cs @@ -36,7 +36,7 @@ public ManagedRuleOverride() /// 'Enabled' /// Describes the override action to be applied /// when rule matches. Possible values include: 'AnomalyScoring', - /// 'Allow', 'Block', 'Log' + /// 'Allow', 'Block', 'Log', 'JSChallenge' public ManagedRuleOverride(string ruleId, string state = default(string), string action = default(string)) { RuleId = ruleId; @@ -66,7 +66,7 @@ public ManagedRuleOverride() /// /// Gets or sets describes the override action to be applied when rule /// matches. Possible values include: 'AnomalyScoring', 'Allow', - /// 'Block', 'Log' + /// 'Block', 'Log', 'JSChallenge' /// [JsonProperty(PropertyName = "action")] public string Action { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MigrateLoadBalancerToIpBasedRequest.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MigrateLoadBalancerToIpBasedRequest.cs new file mode 100644 index 0000000000000..05caa02aa050e --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MigrateLoadBalancerToIpBasedRequest.cs @@ -0,0 +1,57 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The request for a migrateToIpBased API. + /// + public partial class MigrateLoadBalancerToIpBasedRequest + { + /// + /// Initializes a new instance of the + /// MigrateLoadBalancerToIpBasedRequest class. + /// + public MigrateLoadBalancerToIpBasedRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// MigrateLoadBalancerToIpBasedRequest class. + /// + /// A list of pool names that should be migrated + /// from Nic based to IP based pool + public MigrateLoadBalancerToIpBasedRequest(IList pools = default(IList)) + { + Pools = pools; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a list of pool names that should be migrated from Nic + /// based to IP based pool + /// + [JsonProperty(PropertyName = "pools")] + public IList Pools { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MigratedPools.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MigratedPools.cs new file mode 100644 index 0000000000000..89d7fcc8ab087 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MigratedPools.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The response for a migrateToIpBased API. + /// + public partial class MigratedPools + { + /// + /// Initializes a new instance of the MigratedPools class. + /// + public MigratedPools() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MigratedPools class. + /// + /// A list of pools migrated from + /// Nic based to IP based pool + public MigratedPools(IList migratedPoolsProperty = default(IList)) + { + MigratedPoolsProperty = migratedPoolsProperty; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a list of pools migrated from Nic based to IP based + /// pool + /// + [JsonProperty(PropertyName = "migratedPools")] + public IList MigratedPoolsProperty { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkGroup.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkGroup.cs index 70d7bd4bcc91b..25a7f4d9213c4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkGroup.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkGroup.cs @@ -42,13 +42,16 @@ public NetworkGroup() /// The provisioning state of the scope /// assignment resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed' + /// Unique identifier for this + /// resource. /// The system metadata related to this /// resource. - public NetworkGroup(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string description = default(string), string provisioningState = default(string), SystemData systemData = default(SystemData)) + public NetworkGroup(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string description = default(string), string provisioningState = default(string), string resourceGuid = default(string), SystemData systemData = default(SystemData)) : base(id, name, type, etag) { Description = description; ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; SystemData = systemData; CustomInit(); } @@ -72,6 +75,12 @@ public NetworkGroup() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + /// /// Gets the system metadata related to this resource. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs index fd50b9f8c1612..70ff44fc1a1da 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs @@ -86,10 +86,13 @@ public NetworkInterface() /// 'Abort', 'Committed' /// Auxiliary mode of Network Interface /// resource. Possible values include: 'None', 'MaxConnections', - /// 'Floating' + /// 'Floating', 'AcceleratedConnections' + /// Auxiliary sku of Network Interface + /// resource. Possible values include: 'None', 'A1', 'A2', 'A4', + /// 'A8' /// A unique read-only string that changes whenever /// the resource is updated. - public NetworkInterface(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExtendedLocation extendedLocation = default(ExtendedLocation), SubResource virtualMachine = default(SubResource), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), IList ipConfigurations = default(IList), IList tapConfigurations = default(IList), NetworkInterfaceDnsSettings dnsSettings = default(NetworkInterfaceDnsSettings), string macAddress = default(string), bool? primary = default(bool?), bool? vnetEncryptionSupported = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? disableTcpStateTracking = default(bool?), bool? enableIPForwarding = default(bool?), IList hostedWorkloads = default(IList), SubResource dscpConfiguration = default(SubResource), string resourceGuid = default(string), string provisioningState = default(string), string workloadType = default(string), string nicType = default(string), PrivateLinkService privateLinkService = default(PrivateLinkService), string migrationPhase = default(string), string auxiliaryMode = default(string), string etag = default(string)) + public NetworkInterface(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExtendedLocation extendedLocation = default(ExtendedLocation), SubResource virtualMachine = default(SubResource), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), IList ipConfigurations = default(IList), IList tapConfigurations = default(IList), NetworkInterfaceDnsSettings dnsSettings = default(NetworkInterfaceDnsSettings), string macAddress = default(string), bool? primary = default(bool?), bool? vnetEncryptionSupported = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? disableTcpStateTracking = default(bool?), bool? enableIPForwarding = default(bool?), IList hostedWorkloads = default(IList), SubResource dscpConfiguration = default(SubResource), string resourceGuid = default(string), string provisioningState = default(string), string workloadType = default(string), string nicType = default(string), PrivateLinkService privateLinkService = default(PrivateLinkService), string migrationPhase = default(string), string auxiliaryMode = default(string), string auxiliarySku = default(string), string etag = default(string)) : base(id, name, type, location, tags) { ExtendedLocation = extendedLocation; @@ -114,6 +117,7 @@ public NetworkInterface() PrivateLinkService = privateLinkService; MigrationPhase = migrationPhase; AuxiliaryMode = auxiliaryMode; + AuxiliarySku = auxiliarySku; Etag = etag; CustomInit(); } @@ -264,11 +268,19 @@ public NetworkInterface() /// /// Gets or sets auxiliary mode of Network Interface resource. Possible - /// values include: 'None', 'MaxConnections', 'Floating' + /// values include: 'None', 'MaxConnections', 'Floating', + /// 'AcceleratedConnections' /// [JsonProperty(PropertyName = "properties.auxiliaryMode")] public string AuxiliaryMode { get; set; } + /// + /// Gets or sets auxiliary sku of Network Interface resource. Possible + /// values include: 'None', 'A1', 'A2', 'A4', 'A8' + /// + [JsonProperty(PropertyName = "properties.auxiliarySku")] + public string AuxiliarySku { get; set; } + /// /// Gets a unique read-only string that changes whenever the resource /// is updated. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceAuxiliaryMode.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceAuxiliaryMode.cs index 488be68a6ccc0..2da5df6ff7eb8 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceAuxiliaryMode.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceAuxiliaryMode.cs @@ -19,5 +19,6 @@ public static class NetworkInterfaceAuxiliaryMode public const string None = "None"; public const string MaxConnections = "MaxConnections"; public const string Floating = "Floating"; + public const string AcceleratedConnections = "AcceleratedConnections"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceAuxiliarySku.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceAuxiliarySku.cs new file mode 100644 index 0000000000000..8758a6534c780 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceAuxiliarySku.cs @@ -0,0 +1,25 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for NetworkInterfaceAuxiliarySku. + /// + public static class NetworkInterfaceAuxiliarySku + { + public const string None = "None"; + public const string A1 = "A1"; + public const string A2 = "A2"; + public const string A4 = "A4"; + public const string A8 = "A8"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIPConfiguration.cs similarity index 76% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIpConfiguration.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIPConfiguration.cs index 80fbd55392280..a1e7b47d83a57 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIpConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIPConfiguration.cs @@ -48,7 +48,12 @@ public NetworkInterfaceIPConfiguration() /// A list of references of /// LoadBalancerInboundNatRules. /// Private IP address of the IP - /// configuration. + /// configuration. It can be a single IP address or a CIDR block in the + /// format <address>/<prefix-length>. + /// The private IP address + /// prefix length. If specified and the allocation method is dynamic, + /// the service will allocate a CIDR block instead of a single IP + /// address. /// The private IP address /// allocation method. Possible values include: 'Static', /// 'Dynamic' @@ -73,7 +78,7 @@ public NetworkInterfaceIPConfiguration() /// A unique read-only string that changes whenever /// the resource is updated. /// Resource type. - public NetworkInterfaceIPConfiguration(string id = default(string), SubResource gatewayLoadBalancer = default(SubResource), IList virtualNetworkTaps = default(IList), IList applicationGatewayBackendAddressPools = default(IList), IList loadBalancerBackendAddressPools = default(IList), IList loadBalancerInboundNatRules = default(IList), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), string privateIPAddressVersion = default(string), Subnet subnet = default(Subnet), bool? primary = default(bool?), PublicIPAddress publicIPAddress = default(PublicIPAddress), IList applicationSecurityGroups = default(IList), string provisioningState = default(string), NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties privateLinkConnectionProperties = default(NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties), string name = default(string), string etag = default(string), string type = default(string)) + public NetworkInterfaceIPConfiguration(string id = default(string), SubResource gatewayLoadBalancer = default(SubResource), IList virtualNetworkTaps = default(IList), IList applicationGatewayBackendAddressPools = default(IList), IList loadBalancerBackendAddressPools = default(IList), IList loadBalancerInboundNatRules = default(IList), string privateIPAddress = default(string), int? privateIPAddressPrefixLength = default(int?), string privateIPAllocationMethod = default(string), string privateIPAddressVersion = default(string), Subnet subnet = default(Subnet), bool? primary = default(bool?), PublicIPAddress publicIPAddress = default(PublicIPAddress), IList applicationSecurityGroups = default(IList), string provisioningState = default(string), NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties privateLinkConnectionProperties = default(NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { GatewayLoadBalancer = gatewayLoadBalancer; @@ -82,6 +87,7 @@ public NetworkInterfaceIPConfiguration() LoadBalancerBackendAddressPools = loadBalancerBackendAddressPools; LoadBalancerInboundNatRules = loadBalancerInboundNatRules; PrivateIPAddress = privateIPAddress; + PrivateIPAddressPrefixLength = privateIPAddressPrefixLength; PrivateIPAllocationMethod = privateIPAllocationMethod; PrivateIPAddressVersion = privateIPAddressVersion; Subnet = subnet; @@ -134,11 +140,21 @@ public NetworkInterfaceIPConfiguration() public IList LoadBalancerInboundNatRules { get; set; } /// - /// Gets or sets private IP address of the IP configuration. + /// Gets or sets private IP address of the IP configuration. It can be + /// a single IP address or a CIDR block in the format + /// &lt;address&gt;/&lt;prefix-length&gt;. /// [JsonProperty(PropertyName = "properties.privateIPAddress")] public string PrivateIPAddress { get; set; } + /// + /// Gets or sets the private IP address prefix length. If specified and + /// the allocation method is dynamic, the service will allocate a CIDR + /// block instead of a single IP address. + /// + [JsonProperty(PropertyName = "properties.privateIPAddressPrefixLength")] + public int? PrivateIPAddressPrefixLength { get; set; } + /// /// Gets or sets the private IP address allocation method. Possible /// values include: 'Static', 'Dynamic' @@ -213,5 +229,42 @@ public NetworkInterfaceIPConfiguration() [JsonProperty(PropertyName = "type")] public string Type { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (VirtualNetworkTaps != null) + { + foreach (var element in VirtualNetworkTaps) + { + if (element != null) + { + element.Validate(); + } + } + } + if (LoadBalancerInboundNatRules != null) + { + foreach (var element1 in LoadBalancerInboundNatRules) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + if (PrivateIPAddressPrefixLength > 128) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "PrivateIPAddressPrefixLength", 128); + } + if (PrivateIPAddressPrefixLength < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "PrivateIPAddressPrefixLength", 1); + } + } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceTapConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceTapConfiguration.cs index 7be020d7ccf32..2b922b608c31d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceTapConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceTapConfiguration.cs @@ -96,5 +96,18 @@ public NetworkInterfaceTapConfiguration() [JsonProperty(PropertyName = "type")] public string Type { get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (VirtualNetworkTap != null) + { + VirtualNetworkTap.Validate(); + } + } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkManager.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkManager.cs index aa6b731e34410..dd79f65c633bb 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkManager.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkManager.cs @@ -47,17 +47,20 @@ public NetworkManager() /// The provisioning state of the /// network manager resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed' + /// Unique identifier for this + /// resource. /// A unique read-only string that changes whenever /// the resource is updated. /// The system metadata related to this /// resource. - public NetworkManager(NetworkManagerPropertiesNetworkManagerScopes networkManagerScopes, IList networkManagerScopeAccesses, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string description = default(string), string provisioningState = default(string), string etag = default(string), SystemData systemData = default(SystemData)) + public NetworkManager(NetworkManagerPropertiesNetworkManagerScopes networkManagerScopes, IList networkManagerScopeAccesses, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string description = default(string), string provisioningState = default(string), string resourceGuid = default(string), string etag = default(string), SystemData systemData = default(SystemData)) : base(id, name, type, location, tags) { Description = description; NetworkManagerScopes = networkManagerScopes; NetworkManagerScopeAccesses = networkManagerScopeAccesses; ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; Etag = etag; SystemData = systemData; CustomInit(); @@ -94,6 +97,12 @@ public NetworkManager() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + /// /// Gets a unique read-only string that changes whenever the resource /// is updated. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliance.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliance.cs index 14758a96a31c7..6fac85f486a50 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliance.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliance.cs @@ -56,8 +56,16 @@ public NetworkVirtualAppliance() /// Public key for SSH login. /// List of Virtual Appliance /// Network Interfaces. + /// Network Profile containing + /// configurations for Public and Private NIC. + /// Details required for Additional + /// Network Interface. + /// List of Resource Uri of + /// Public IPs for Internet Ingress Scenario. /// List of references to /// VirtualApplianceSite. + /// List of references to + /// VirtualApplianceConnections. /// List of references to /// InboundSecurityRules. /// The provisioning state of the @@ -73,7 +81,7 @@ public NetworkVirtualAppliance() /// to cloud-init and config blob. /// A unique read-only string that changes whenever /// the resource is updated. - public NetworkVirtualAppliance(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), VirtualApplianceSkuProperties nvaSku = default(VirtualApplianceSkuProperties), string addressPrefix = default(string), IList bootStrapConfigurationBlobs = default(IList), SubResource virtualHub = default(SubResource), IList cloudInitConfigurationBlobs = default(IList), string cloudInitConfiguration = default(string), long? virtualApplianceAsn = default(long?), string sshPublicKey = default(string), IList virtualApplianceNics = default(IList), IList virtualApplianceSites = default(IList), IList inboundSecurityRules = default(IList), string provisioningState = default(string), string deploymentType = default(string), DelegationProperties delegation = default(DelegationProperties), PartnerManagedResourceProperties partnerManagedResource = default(PartnerManagedResourceProperties), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string etag = default(string)) + public NetworkVirtualAppliance(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), VirtualApplianceSkuProperties nvaSku = default(VirtualApplianceSkuProperties), string addressPrefix = default(string), IList bootStrapConfigurationBlobs = default(IList), SubResource virtualHub = default(SubResource), IList cloudInitConfigurationBlobs = default(IList), string cloudInitConfiguration = default(string), long? virtualApplianceAsn = default(long?), string sshPublicKey = default(string), IList virtualApplianceNics = default(IList), NetworkVirtualAppliancePropertiesFormatNetworkProfile networkProfile = default(NetworkVirtualAppliancePropertiesFormatNetworkProfile), IList additionalNics = default(IList), IList internetIngressPublicIps = default(IList), IList virtualApplianceSites = default(IList), IList virtualApplianceConnections = default(IList), IList inboundSecurityRules = default(IList), string provisioningState = default(string), string deploymentType = default(string), DelegationProperties delegation = default(DelegationProperties), PartnerManagedResourceProperties partnerManagedResource = default(PartnerManagedResourceProperties), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string etag = default(string)) : base(id, name, type, location, tags) { NvaSku = nvaSku; @@ -85,7 +93,11 @@ public NetworkVirtualAppliance() VirtualApplianceAsn = virtualApplianceAsn; SshPublicKey = sshPublicKey; VirtualApplianceNics = virtualApplianceNics; + NetworkProfile = networkProfile; + AdditionalNics = additionalNics; + InternetIngressPublicIps = internetIngressPublicIps; VirtualApplianceSites = virtualApplianceSites; + VirtualApplianceConnections = virtualApplianceConnections; InboundSecurityRules = inboundSecurityRules; ProvisioningState = provisioningState; DeploymentType = deploymentType; @@ -157,12 +169,38 @@ public NetworkVirtualAppliance() [JsonProperty(PropertyName = "properties.virtualApplianceNics")] public IList VirtualApplianceNics { get; private set; } + /// + /// Gets or sets network Profile containing configurations for Public + /// and Private NIC. + /// + [JsonProperty(PropertyName = "properties.networkProfile")] + public NetworkVirtualAppliancePropertiesFormatNetworkProfile NetworkProfile { get; set; } + + /// + /// Gets or sets details required for Additional Network Interface. + /// + [JsonProperty(PropertyName = "properties.additionalNics")] + public IList AdditionalNics { get; set; } + + /// + /// Gets or sets list of Resource Uri of Public IPs for Internet + /// Ingress Scenario. + /// + [JsonProperty(PropertyName = "properties.internetIngressPublicIps")] + public IList InternetIngressPublicIps { get; set; } + /// /// Gets list of references to VirtualApplianceSite. /// [JsonProperty(PropertyName = "properties.virtualApplianceSites")] public IList VirtualApplianceSites { get; private set; } + /// + /// Gets list of references to VirtualApplianceConnections. + /// + [JsonProperty(PropertyName = "properties.virtualApplianceConnections")] + public IList VirtualApplianceConnections { get; private set; } + /// /// Gets list of references to InboundSecurityRules. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualApplianceConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualApplianceConnection.cs new file mode 100644 index 0000000000000..3cc7f38dff030 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualApplianceConnection.cs @@ -0,0 +1,152 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// NetworkVirtualApplianceConnection resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class NetworkVirtualApplianceConnection : SubResource + { + /// + /// Initializes a new instance of the NetworkVirtualApplianceConnection + /// class. + /// + public NetworkVirtualApplianceConnection() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NetworkVirtualApplianceConnection + /// class. + /// + /// Resource ID. + /// The + /// name of the resource. + /// The provisioning state of the + /// NetworkVirtualApplianceConnection resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Network Virtual Appliance ASN. + /// Unique identifier for the + /// connection. + /// List of bgpPeerAddresses for the NVA + /// instances + /// Enable internet + /// security. + /// The Routing Configuration + /// indicating the associated and propagated route tables on this + /// connection. + /// The name of the resource. + public NetworkVirtualApplianceConnection(string id = default(string), string networkVirtualApplianceConnectionPropertiesName = default(string), string provisioningState = default(string), long? asn = default(long?), long? tunnelIdentifier = default(long?), IList bgpPeerAddress = default(IList), bool? enableInternetSecurity = default(bool?), RoutingConfiguration routingConfiguration = default(RoutingConfiguration), string name = default(string)) + : base(id) + { + NetworkVirtualApplianceConnectionPropertiesName = networkVirtualApplianceConnectionPropertiesName; + ProvisioningState = provisioningState; + Asn = asn; + TunnelIdentifier = tunnelIdentifier; + BgpPeerAddress = bgpPeerAddress; + EnableInternetSecurity = enableInternetSecurity; + RoutingConfiguration = routingConfiguration; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the resource. + /// + [JsonProperty(PropertyName = "properties.name")] + public string NetworkVirtualApplianceConnectionPropertiesName { get; set; } + + /// + /// Gets the provisioning state of the + /// NetworkVirtualApplianceConnection resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets network Virtual Appliance ASN. + /// + [JsonProperty(PropertyName = "properties.asn")] + public long? Asn { get; set; } + + /// + /// Gets or sets unique identifier for the connection. + /// + [JsonProperty(PropertyName = "properties.tunnelIdentifier")] + public long? TunnelIdentifier { get; set; } + + /// + /// Gets or sets list of bgpPeerAddresses for the NVA instances + /// + [JsonProperty(PropertyName = "properties.bgpPeerAddress")] + public IList BgpPeerAddress { get; set; } + + /// + /// Gets or sets enable internet security. + /// + [JsonProperty(PropertyName = "properties.enableInternetSecurity")] + public bool? EnableInternetSecurity { get; set; } + + /// + /// Gets or sets the Routing Configuration indicating the associated + /// and propagated route tables on this connection. + /// + [JsonProperty(PropertyName = "properties.routingConfiguration")] + public RoutingConfiguration RoutingConfiguration { get; set; } + + /// + /// Gets or sets the name of the resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Asn > 4294967295) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "Asn", 4294967295); + } + if (Asn < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Asn", 0); + } + if (TunnelIdentifier > 4294967295) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "TunnelIdentifier", 4294967295); + } + if (TunnelIdentifier < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "TunnelIdentifier", 0); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualApplianceConnectionsDeleteHeaders.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualApplianceConnectionsDeleteHeaders.cs new file mode 100644 index 0000000000000..111134a7be409 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualApplianceConnectionsDeleteHeaders.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Delete operation. + /// + public partial class NetworkVirtualApplianceConnectionsDeleteHeaders + { + /// + /// Initializes a new instance of the + /// NetworkVirtualApplianceConnectionsDeleteHeaders class. + /// + public NetworkVirtualApplianceConnectionsDeleteHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// NetworkVirtualApplianceConnectionsDeleteHeaders class. + /// + /// The URL of the resource used to check the + /// status of the asynchronous operation. + public NetworkVirtualApplianceConnectionsDeleteHeaders(string location = default(string)) + { + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the URL of the resource used to check the status of + /// the asynchronous operation. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualApplianceInstanceIds.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualApplianceInstanceIds.cs new file mode 100644 index 0000000000000..dbf70db384f36 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualApplianceInstanceIds.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Specifies a list of virtual machine instance IDs from the Network + /// Virtual Appliance VM instances. + /// + public partial class NetworkVirtualApplianceInstanceIds + { + /// + /// Initializes a new instance of the + /// NetworkVirtualApplianceInstanceIds class. + /// + public NetworkVirtualApplianceInstanceIds() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// NetworkVirtualApplianceInstanceIds class. + /// + /// The network virtual appliance instance + /// ids. Omitting the network virtual appliance instance ids will + /// result in the operation being performed on all virtual machines + /// belonging to the network virtual appliance. + public NetworkVirtualApplianceInstanceIds(IList instanceIds = default(IList)) + { + InstanceIds = instanceIds; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the network virtual appliance instance ids. Omitting + /// the network virtual appliance instance ids will result in the + /// operation being performed on all virtual machines belonging to the + /// network virtual appliance. + /// + [JsonProperty(PropertyName = "instanceIds")] + public IList InstanceIds { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.cs new file mode 100644 index 0000000000000..292962a182cc6 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Network Profile containing configurations for Public and Private NIC. + /// + public partial class NetworkVirtualAppliancePropertiesFormatNetworkProfile + { + /// + /// Initializes a new instance of the + /// NetworkVirtualAppliancePropertiesFormatNetworkProfile class. + /// + public NetworkVirtualAppliancePropertiesFormatNetworkProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// NetworkVirtualAppliancePropertiesFormatNetworkProfile class. + /// + public NetworkVirtualAppliancePropertiesFormatNetworkProfile(IList networkInterfaceConfigurations = default(IList)) + { + NetworkInterfaceConfigurations = networkInterfaceConfigurations; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "networkInterfaceConfigurations")] + public IList NetworkInterfaceConfigurations { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancesCreateOrUpdateHeaders.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancesCreateOrUpdateHeaders.cs new file mode 100644 index 0000000000000..93349a5c4d022 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancesCreateOrUpdateHeaders.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for CreateOrUpdate operation. + /// + public partial class NetworkVirtualAppliancesCreateOrUpdateHeaders + { + /// + /// Initializes a new instance of the + /// NetworkVirtualAppliancesCreateOrUpdateHeaders class. + /// + public NetworkVirtualAppliancesCreateOrUpdateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// NetworkVirtualAppliancesCreateOrUpdateHeaders class. + /// + /// The URL of the resource used to check the + /// status of the asynchronous operation. + public NetworkVirtualAppliancesCreateOrUpdateHeaders(string location = default(string)) + { + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the URL of the resource used to check the status of + /// the asynchronous operation. + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancesDeleteHeaders.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancesDeleteHeaders.cs new file mode 100644 index 0000000000000..964afbc214714 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancesDeleteHeaders.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Delete operation. + /// + public partial class NetworkVirtualAppliancesDeleteHeaders + { + /// + /// Initializes a new instance of the + /// NetworkVirtualAppliancesDeleteHeaders class. + /// + public NetworkVirtualAppliancesDeleteHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// NetworkVirtualAppliancesDeleteHeaders class. + /// + /// The URL of the resource used to check the + /// status of the asynchronous operation. + public NetworkVirtualAppliancesDeleteHeaders(string location = default(string)) + { + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the URL of the resource used to check the status of + /// the asynchronous operation. + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancesRestartHeaders.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancesRestartHeaders.cs new file mode 100644 index 0000000000000..abf1ca3de9c2e --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliancesRestartHeaders.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Restart operation. + /// + public partial class NetworkVirtualAppliancesRestartHeaders + { + /// + /// Initializes a new instance of the + /// NetworkVirtualAppliancesRestartHeaders class. + /// + public NetworkVirtualAppliancesRestartHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// NetworkVirtualAppliancesRestartHeaders class. + /// + /// The URL of the resource used to check the + /// status of the asynchronous operation. + public NetworkVirtualAppliancesRestartHeaders(string location = default(string)) + { + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the URL of the resource used to check the status of + /// the asynchronous operation. + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NicTypeInRequest.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NicTypeInRequest.cs new file mode 100644 index 0000000000000..fd2ac8c79eba1 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NicTypeInRequest.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for NicTypeInRequest. + /// + public static class NicTypeInRequest + { + public const string PublicNic = "PublicNic"; + public const string PrivateNic = "PrivateNic"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NicTypeInResponse.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NicTypeInResponse.cs new file mode 100644 index 0000000000000..cef6359d258bf --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NicTypeInResponse.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for NicTypeInResponse. + /// + public static class NicTypeInResponse + { + public const string PublicNic = "PublicNic"; + public const string PrivateNic = "PrivateNic"; + public const string AdditionalNic = "AdditionalNic"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCapture.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCapture.cs index d5eb6c05a7e4a..8531f83850a4d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCapture.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCapture.cs @@ -51,7 +51,14 @@ public PacketCapture() /// Maximum duration of the capture /// session in seconds. /// A list of packet capture filters. - public PacketCapture(string target, PacketCaptureStorageLocation storageLocation, PacketCaptureMachineScope scope = default(PacketCaptureMachineScope), PacketCaptureTargetType? targetType = default(PacketCaptureTargetType?), long? bytesToCapturePerPacket = default(long?), long? totalBytesPerSession = default(long?), int? timeLimitInSeconds = default(int?), IList filters = default(IList)) + /// This continuous capture is a + /// nullable boolean, which can hold 'null', 'true' or 'false' value. + /// If we do not pass this parameter, it would be consider as 'null', + /// default value is 'null'. + /// The capture setting holds the + /// 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' + /// values. + public PacketCapture(string target, PacketCaptureStorageLocation storageLocation, PacketCaptureMachineScope scope = default(PacketCaptureMachineScope), PacketCaptureTargetType? targetType = default(PacketCaptureTargetType?), long? bytesToCapturePerPacket = default(long?), long? totalBytesPerSession = default(long?), int? timeLimitInSeconds = default(int?), IList filters = default(IList), bool? continuousCapture = default(bool?), PacketCaptureSettings captureSettings = default(PacketCaptureSettings)) { Target = target; Scope = scope; @@ -61,6 +68,8 @@ public PacketCapture() TimeLimitInSeconds = timeLimitInSeconds; StorageLocation = storageLocation; Filters = filters; + ContinuousCapture = continuousCapture; + CaptureSettings = captureSettings; CustomInit(); } @@ -123,6 +132,21 @@ public PacketCapture() [JsonProperty(PropertyName = "properties.filters")] public IList Filters { get; set; } + /// + /// Gets or sets this continuous capture is a nullable boolean, which + /// can hold 'null', 'true' or 'false' value. If we do not pass this + /// parameter, it would be consider as 'null', default value is 'null'. + /// + [JsonProperty(PropertyName = "properties.continuousCapture")] + public bool? ContinuousCapture { get; set; } + + /// + /// Gets or sets the capture setting holds the 'FileCount', + /// 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values. + /// + [JsonProperty(PropertyName = "properties.captureSettings")] + public PacketCaptureSettings CaptureSettings { get; set; } + /// /// Validate the object. /// @@ -163,6 +187,10 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.InclusiveMinimum, "TimeLimitInSeconds", 0); } + if (CaptureSettings != null) + { + CaptureSettings.Validate(); + } } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureParameters.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureParameters.cs index 690a1c7561482..0a6c5b5236b37 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureParameters.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureParameters.cs @@ -49,7 +49,14 @@ public PacketCaptureParameters() /// Maximum duration of the capture /// session in seconds. /// A list of packet capture filters. - public PacketCaptureParameters(string target, PacketCaptureStorageLocation storageLocation, PacketCaptureMachineScope scope = default(PacketCaptureMachineScope), PacketCaptureTargetType? targetType = default(PacketCaptureTargetType?), long? bytesToCapturePerPacket = default(long?), long? totalBytesPerSession = default(long?), int? timeLimitInSeconds = default(int?), IList filters = default(IList)) + /// This continuous capture is a + /// nullable boolean, which can hold 'null', 'true' or 'false' value. + /// If we do not pass this parameter, it would be consider as 'null', + /// default value is 'null'. + /// The capture setting holds the + /// 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' + /// values. + public PacketCaptureParameters(string target, PacketCaptureStorageLocation storageLocation, PacketCaptureMachineScope scope = default(PacketCaptureMachineScope), PacketCaptureTargetType? targetType = default(PacketCaptureTargetType?), long? bytesToCapturePerPacket = default(long?), long? totalBytesPerSession = default(long?), int? timeLimitInSeconds = default(int?), IList filters = default(IList), bool? continuousCapture = default(bool?), PacketCaptureSettings captureSettings = default(PacketCaptureSettings)) { Target = target; Scope = scope; @@ -59,6 +66,8 @@ public PacketCaptureParameters() TimeLimitInSeconds = timeLimitInSeconds; StorageLocation = storageLocation; Filters = filters; + ContinuousCapture = continuousCapture; + CaptureSettings = captureSettings; CustomInit(); } @@ -121,6 +130,21 @@ public PacketCaptureParameters() [JsonProperty(PropertyName = "filters")] public IList Filters { get; set; } + /// + /// Gets or sets this continuous capture is a nullable boolean, which + /// can hold 'null', 'true' or 'false' value. If we do not pass this + /// parameter, it would be consider as 'null', default value is 'null'. + /// + [JsonProperty(PropertyName = "continuousCapture")] + public bool? ContinuousCapture { get; set; } + + /// + /// Gets or sets the capture setting holds the 'FileCount', + /// 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values. + /// + [JsonProperty(PropertyName = "captureSettings")] + public PacketCaptureSettings CaptureSettings { get; set; } + /// /// Validate the object. /// @@ -161,6 +185,10 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.InclusiveMinimum, "TimeLimitInSeconds", 0); } + if (CaptureSettings != null) + { + CaptureSettings.Validate(); + } } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureResult.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureResult.cs index 8da87f88ce342..3c96491771ff0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureResult.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureResult.cs @@ -55,10 +55,17 @@ public PacketCaptureResult() /// Maximum duration of the capture /// session in seconds. /// A list of packet capture filters. + /// This continuous capture is a + /// nullable boolean, which can hold 'null', 'true' or 'false' value. + /// If we do not pass this parameter, it would be consider as 'null', + /// default value is 'null'. + /// The capture setting holds the + /// 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' + /// values. /// The provisioning state of the /// packet capture session. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed' - public PacketCaptureResult(string target, PacketCaptureStorageLocation storageLocation, string name = default(string), string id = default(string), string etag = default(string), PacketCaptureMachineScope scope = default(PacketCaptureMachineScope), PacketCaptureTargetType? targetType = default(PacketCaptureTargetType?), long? bytesToCapturePerPacket = default(long?), long? totalBytesPerSession = default(long?), int? timeLimitInSeconds = default(int?), IList filters = default(IList), string provisioningState = default(string)) + public PacketCaptureResult(string target, PacketCaptureStorageLocation storageLocation, string name = default(string), string id = default(string), string etag = default(string), PacketCaptureMachineScope scope = default(PacketCaptureMachineScope), PacketCaptureTargetType? targetType = default(PacketCaptureTargetType?), long? bytesToCapturePerPacket = default(long?), long? totalBytesPerSession = default(long?), int? timeLimitInSeconds = default(int?), IList filters = default(IList), bool? continuousCapture = default(bool?), PacketCaptureSettings captureSettings = default(PacketCaptureSettings), string provisioningState = default(string)) { Name = name; Id = id; @@ -71,6 +78,8 @@ public PacketCaptureResult() TimeLimitInSeconds = timeLimitInSeconds; StorageLocation = storageLocation; Filters = filters; + ContinuousCapture = continuousCapture; + CaptureSettings = captureSettings; ProvisioningState = provisioningState; CustomInit(); } @@ -153,6 +162,21 @@ public PacketCaptureResult() [JsonProperty(PropertyName = "properties.filters")] public IList Filters { get; set; } + /// + /// Gets or sets this continuous capture is a nullable boolean, which + /// can hold 'null', 'true' or 'false' value. If we do not pass this + /// parameter, it would be consider as 'null', default value is 'null'. + /// + [JsonProperty(PropertyName = "properties.continuousCapture")] + public bool? ContinuousCapture { get; set; } + + /// + /// Gets or sets the capture setting holds the 'FileCount', + /// 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values. + /// + [JsonProperty(PropertyName = "properties.captureSettings")] + public PacketCaptureSettings CaptureSettings { get; set; } + /// /// Gets the provisioning state of the packet capture session. Possible /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' @@ -200,6 +224,10 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.InclusiveMinimum, "TimeLimitInSeconds", 0); } + if (CaptureSettings != null) + { + CaptureSettings.Validate(); + } } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureSettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureSettings.cs new file mode 100644 index 0000000000000..8ce1070abfb4c --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureSettings.cs @@ -0,0 +1,110 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The storage location for a packet capture session. + /// + public partial class PacketCaptureSettings + { + /// + /// Initializes a new instance of the PacketCaptureSettings class. + /// + public PacketCaptureSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PacketCaptureSettings class. + /// + /// Number of file count. Default value of + /// count is 10 and maximum number is 10000. + /// Number of bytes captured per packet. + /// Default value in bytes 104857600 (100MB) and maximum in bytes + /// 4294967295 (4GB). + /// Maximum duration of the + /// capture session in seconds is 604800s (7 days) for a file. Default + /// value in second 86400s (1 day). + public PacketCaptureSettings(int? fileCount = default(int?), long? fileSizeInBytes = default(long?), int? sessionTimeLimitInSeconds = default(int?)) + { + FileCount = fileCount; + FileSizeInBytes = fileSizeInBytes; + SessionTimeLimitInSeconds = sessionTimeLimitInSeconds; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets number of file count. Default value of count is 10 and + /// maximum number is 10000. + /// + [JsonProperty(PropertyName = "fileCount")] + public int? FileCount { get; set; } + + /// + /// Gets or sets number of bytes captured per packet. Default value in + /// bytes 104857600 (100MB) and maximum in bytes 4294967295 (4GB). + /// + [JsonProperty(PropertyName = "fileSizeInBytes")] + public long? FileSizeInBytes { get; set; } + + /// + /// Gets or sets maximum duration of the capture session in seconds is + /// 604800s (7 days) for a file. Default value in second 86400s (1 + /// day). + /// + [JsonProperty(PropertyName = "sessionTimeLimitInSeconds")] + public int? SessionTimeLimitInSeconds { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (FileCount > 10000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "FileCount", 10000); + } + if (FileCount < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "FileCount", 0); + } + if (FileSizeInBytes > 4294967295) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "FileSizeInBytes", 4294967295); + } + if (FileSizeInBytes < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "FileSizeInBytes", 0); + } + if (SessionTimeLimitInSeconds > 604800) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "SessionTimeLimitInSeconds", 604800); + } + if (SessionTimeLimitInSeconds < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "SessionTimeLimitInSeconds", 0); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureStorageLocation.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureStorageLocation.cs index 3604622fb276e..9b1ce4d162163 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureStorageLocation.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureStorageLocation.cs @@ -32,20 +32,27 @@ public PacketCaptureStorageLocation() /// class. /// /// The ID of the storage account to save the - /// packet capture session. Required if no local file path is + /// packet capture session. Required if no localPath or filePath is /// provided. /// The URI of the storage path to save the /// packet capture. Must be a well-formed URI describing the location /// to save the packet capture. - /// A valid local path on the targeting VM. Must - /// include the name of the capture file (*.cap). For linux virtual - /// machine it must start with /var/captures. Required if no storage ID - /// is provided, otherwise optional. - public PacketCaptureStorageLocation(string storageId = default(string), string storagePath = default(string), string filePath = default(string)) + /// This path is invalid if 'Continuous Capture' + /// is provided with 'true' or 'false'. A valid local path on the + /// targeting VM. Must include the name of the capture file (*.cap). + /// For linux virtual machine it must start with /var/captures. + /// Required if no storage ID is provided, otherwise optional. + /// This path is valid if 'Continuous Capture' + /// is provided with 'true' or 'false' and required if no storage ID is + /// provided, otherwise optional. Must include the name of the capture + /// file (*.cap). For linux virtual machine it must start with + /// /var/captures. + public PacketCaptureStorageLocation(string storageId = default(string), string storagePath = default(string), string filePath = default(string), string localPath = default(string)) { StorageId = storageId; StoragePath = storagePath; FilePath = filePath; + LocalPath = localPath; CustomInit(); } @@ -56,7 +63,7 @@ public PacketCaptureStorageLocation() /// /// Gets or sets the ID of the storage account to save the packet - /// capture session. Required if no local file path is provided. + /// capture session. Required if no localPath or filePath is provided. /// [JsonProperty(PropertyName = "storageId")] public string StorageId { get; set; } @@ -70,13 +77,24 @@ public PacketCaptureStorageLocation() public string StoragePath { get; set; } /// - /// Gets or sets a valid local path on the targeting VM. Must include - /// the name of the capture file (*.cap). For linux virtual machine it - /// must start with /var/captures. Required if no storage ID is - /// provided, otherwise optional. + /// Gets or sets this path is invalid if 'Continuous Capture' is + /// provided with 'true' or 'false'. A valid local path on the + /// targeting VM. Must include the name of the capture file (*.cap). + /// For linux virtual machine it must start with /var/captures. + /// Required if no storage ID is provided, otherwise optional. /// [JsonProperty(PropertyName = "filePath")] public string FilePath { get; set; } + /// + /// Gets or sets this path is valid if 'Continuous Capture' is provided + /// with 'true' or 'false' and required if no storage ID is provided, + /// otherwise optional. Must include the name of the capture file + /// (*.cap). For linux virtual machine it must start with + /// /var/captures. + /// + [JsonProperty(PropertyName = "localPath")] + public string LocalPath { get; set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PolicySettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PolicySettings.cs index 0742d117b3f86..6b5f7f895d3ef 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PolicySettings.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PolicySettings.cs @@ -36,8 +36,14 @@ public PolicySettings() /// 'Prevention', 'Detection' /// Whether to allow WAF to check /// request Body. + /// Max inspection limit in + /// KB for request body inspection for WAF. + /// Whether allow WAF to enforce + /// request body limits. /// Maximum request body size in /// Kb for WAF. + /// Whether allow WAF to enforce + /// file upload limits. /// Maximum file upload size in Mb /// for WAF. /// If the action type is @@ -45,15 +51,24 @@ public PolicySettings() /// If the action type is block, /// customer can override the response body. The body must be specified /// in base64 encoding. - public PolicySettings(string state = default(string), string mode = default(string), bool? requestBodyCheck = default(bool?), int? maxRequestBodySizeInKb = default(int?), int? fileUploadLimitInMb = default(int?), int? customBlockResponseStatusCode = default(int?), string customBlockResponseBody = default(string)) + /// To scrub sensitive log fields + /// Web Application + /// Firewall JavaScript Challenge Cookie Expiration time in + /// minutes. + public PolicySettings(string state = default(string), string mode = default(string), bool? requestBodyCheck = default(bool?), int? requestBodyInspectLimitInKB = default(int?), bool? requestBodyEnforcement = default(bool?), int? maxRequestBodySizeInKb = default(int?), bool? fileUploadEnforcement = default(bool?), int? fileUploadLimitInMb = default(int?), int? customBlockResponseStatusCode = default(int?), string customBlockResponseBody = default(string), PolicySettingsLogScrubbing logScrubbing = default(PolicySettingsLogScrubbing), int? jsChallengeCookieExpirationInMins = default(int?)) { State = state; Mode = mode; RequestBodyCheck = requestBodyCheck; + RequestBodyInspectLimitInKB = requestBodyInspectLimitInKB; + RequestBodyEnforcement = requestBodyEnforcement; MaxRequestBodySizeInKb = maxRequestBodySizeInKb; + FileUploadEnforcement = fileUploadEnforcement; FileUploadLimitInMb = fileUploadLimitInMb; CustomBlockResponseStatusCode = customBlockResponseStatusCode; CustomBlockResponseBody = customBlockResponseBody; + LogScrubbing = logScrubbing; + JsChallengeCookieExpirationInMins = jsChallengeCookieExpirationInMins; CustomInit(); } @@ -82,12 +97,31 @@ public PolicySettings() [JsonProperty(PropertyName = "requestBodyCheck")] public bool? RequestBodyCheck { get; set; } + /// + /// Gets or sets max inspection limit in KB for request body inspection + /// for WAF. + /// + [JsonProperty(PropertyName = "requestBodyInspectLimitInKB")] + public int? RequestBodyInspectLimitInKB { get; set; } + + /// + /// Gets or sets whether allow WAF to enforce request body limits. + /// + [JsonProperty(PropertyName = "requestBodyEnforcement")] + public bool? RequestBodyEnforcement { get; set; } + /// /// Gets or sets maximum request body size in Kb for WAF. /// [JsonProperty(PropertyName = "maxRequestBodySizeInKb")] public int? MaxRequestBodySizeInKb { get; set; } + /// + /// Gets or sets whether allow WAF to enforce file upload limits. + /// + [JsonProperty(PropertyName = "fileUploadEnforcement")] + public bool? FileUploadEnforcement { get; set; } + /// /// Gets or sets maximum file upload size in Mb for WAF. /// @@ -108,6 +142,19 @@ public PolicySettings() [JsonProperty(PropertyName = "customBlockResponseBody")] public string CustomBlockResponseBody { get; set; } + /// + /// Gets or sets to scrub sensitive log fields + /// + [JsonProperty(PropertyName = "logScrubbing")] + public PolicySettingsLogScrubbing LogScrubbing { get; set; } + + /// + /// Gets or sets web Application Firewall JavaScript Challenge Cookie + /// Expiration time in minutes. + /// + [JsonProperty(PropertyName = "jsChallengeCookieExpirationInMins")] + public int? JsChallengeCookieExpirationInMins { get; set; } + /// /// Validate the object. /// @@ -139,6 +186,14 @@ public virtual void Validate() throw new ValidationException(ValidationRules.Pattern, "CustomBlockResponseBody", "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"); } } + if (JsChallengeCookieExpirationInMins > 1440) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "JsChallengeCookieExpirationInMins", 1440); + } + if (JsChallengeCookieExpirationInMins < 5) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "JsChallengeCookieExpirationInMins", 5); + } } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PolicySettingsLogScrubbing.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PolicySettingsLogScrubbing.cs new file mode 100644 index 0000000000000..9397d46bd86e1 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PolicySettingsLogScrubbing.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// To scrub sensitive log fields + /// + public partial class PolicySettingsLogScrubbing + { + /// + /// Initializes a new instance of the PolicySettingsLogScrubbing class. + /// + public PolicySettingsLogScrubbing() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PolicySettingsLogScrubbing class. + /// + /// State of the log scrubbing config. Default + /// value is Enabled. Possible values include: 'Disabled', + /// 'Enabled' + /// The rules that are applied to the logs + /// for scrubbing. + public PolicySettingsLogScrubbing(string state = default(string), IList scrubbingRules = default(IList)) + { + State = state; + ScrubbingRules = scrubbingRules; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets state of the log scrubbing config. Default value is + /// Enabled. Possible values include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "state")] + public string State { get; set; } + + /// + /// Gets or sets the rules that are applied to the logs for scrubbing. + /// + [JsonProperty(PropertyName = "scrubbingRules")] + public IList ScrubbingRules { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs index 575e64c9ed235..686913ec67125 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs @@ -42,19 +42,22 @@ public PrivateEndpointConnection() /// private endpoint connection resource. Possible values include: /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The consumer link id. + /// The location of the private + /// endpoint. /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. /// The resource type. /// A unique read-only string that changes whenever /// the resource is updated. - public PrivateEndpointConnection(string id = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), string provisioningState = default(string), string linkIdentifier = default(string), string name = default(string), string type = default(string), string etag = default(string)) + public PrivateEndpointConnection(string id = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), string provisioningState = default(string), string linkIdentifier = default(string), string privateEndpointLocation = default(string), string name = default(string), string type = default(string), string etag = default(string)) : base(id) { PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; ProvisioningState = provisioningState; LinkIdentifier = linkIdentifier; + PrivateEndpointLocation = privateEndpointLocation; Name = name; Type = type; Etag = etag; @@ -93,6 +96,12 @@ public PrivateEndpointConnection() [JsonProperty(PropertyName = "properties.linkIdentifier")] public string LinkIdentifier { get; private set; } + /// + /// Gets the location of the private endpoint. + /// + [JsonProperty(PropertyName = "properties.privateEndpointLocation")] + public string PrivateEndpointLocation { get; private set; } + /// /// Gets or sets the name of the resource that is unique within a /// resource group. This name can be used to access the resource. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Probe.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Probe.cs index a1c1d1f7a1f57..875ce09ac6b74 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Probe.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Probe.cs @@ -50,6 +50,10 @@ public Probe() /// (in seconds) which allows two full probes before taking the /// instance out of rotation. The default value is 15, the minimum /// value is 5. + /// Determines how new + /// connections are handled by the load balancer when all backend + /// instances are probed down. Possible values include: + /// 'AllProbedDown', 'AllProbedUp' /// The number of probes where if no /// response, will result in stopping further traffic from being /// delivered to the endpoint. This values allows endpoints to be taken @@ -73,13 +77,14 @@ public Probe() /// A unique read-only string that changes whenever /// the resource is updated. /// Type of the resource. - public Probe(string protocol, int port, string id = default(string), IList loadBalancingRules = default(IList), int? intervalInSeconds = default(int?), int? numberOfProbes = default(int?), int? probeThreshold = default(int?), string requestPath = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) + public Probe(string protocol, int port, string id = default(string), IList loadBalancingRules = default(IList), int? intervalInSeconds = default(int?), string noHealthyBackendsBehavior = default(string), int? numberOfProbes = default(int?), int? probeThreshold = default(int?), string requestPath = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { LoadBalancingRules = loadBalancingRules; Protocol = protocol; Port = port; IntervalInSeconds = intervalInSeconds; + NoHealthyBackendsBehavior = noHealthyBackendsBehavior; NumberOfProbes = numberOfProbes; ProbeThreshold = probeThreshold; RequestPath = requestPath; @@ -128,6 +133,14 @@ public Probe() [JsonProperty(PropertyName = "properties.intervalInSeconds")] public int? IntervalInSeconds { get; set; } + /// + /// Gets or sets determines how new connections are handled by the load + /// balancer when all backend instances are probed down. Possible + /// values include: 'AllProbedDown', 'AllProbedUp' + /// + [JsonProperty(PropertyName = "properties.NoHealthyBackendsBehavior")] + public string NoHealthyBackendsBehavior { get; set; } + /// /// Gets or sets the number of probes where if no response, will result /// in stopping further traffic from being delivered to the endpoint. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ProbeNoHealthyBackendsBehavior.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ProbeNoHealthyBackendsBehavior.cs new file mode 100644 index 0000000000000..89f7b49172e9f --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ProbeNoHealthyBackendsBehavior.cs @@ -0,0 +1,29 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for ProbeNoHealthyBackendsBehavior. + /// + public static class ProbeNoHealthyBackendsBehavior + { + /// + /// No new flows will be sent to the backend pool. + /// + public const string AllProbedDown = "AllProbedDown"; + /// + /// When all backend instances are probed down, incoming packets will + /// be sent to all instances. + /// + public const string AllProbedUp = "AllProbedUp"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddress.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddress.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddress.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddress.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs similarity index 74% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettings.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs index bc4d47934f459..7e04861df54f0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettings.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs @@ -35,6 +35,12 @@ public PublicIPAddressDnsSettings() /// public IP address. If a domain name label is specified, an A DNS /// record is created for the public IP in the Microsoft Azure DNS /// system. + /// The domain name label scope. If + /// a domain name label and a domain name label scope are specified, an + /// A DNS record is created for the public IP in the Microsoft Azure + /// DNS system with a hashed value includes in FQDN. Possible values + /// include: 'TenantReuse', 'SubscriptionReuse', 'ResourceGroupReuse', + /// 'NoReuse' /// The Fully Qualified Domain Name of the A DNS /// record associated with the public IP. This is the concatenation of /// the domainNameLabel and the regionalized DNS zone. @@ -43,9 +49,10 @@ public PublicIPAddressDnsSettings() /// the reverseFqdn is specified, then a PTR DNS record is created /// pointing from the IP address in the in-addr.arpa domain to the /// reverse FQDN. - public PublicIPAddressDnsSettings(string domainNameLabel = default(string), string fqdn = default(string), string reverseFqdn = default(string)) + public PublicIPAddressDnsSettings(string domainNameLabel = default(string), PublicIpAddressDnsSettingsDomainNameLabelScope? domainNameLabelScope = default(PublicIpAddressDnsSettingsDomainNameLabelScope?), string fqdn = default(string), string reverseFqdn = default(string)) { DomainNameLabel = domainNameLabel; + DomainNameLabelScope = domainNameLabelScope; Fqdn = fqdn; ReverseFqdn = reverseFqdn; CustomInit(); @@ -66,6 +73,16 @@ public PublicIPAddressDnsSettings() [JsonProperty(PropertyName = "domainNameLabel")] public string DomainNameLabel { get; set; } + /// + /// Gets or sets the domain name label scope. If a domain name label + /// and a domain name label scope are specified, an A DNS record is + /// created for the public IP in the Microsoft Azure DNS system with a + /// hashed value includes in FQDN. Possible values include: + /// 'TenantReuse', 'SubscriptionReuse', 'ResourceGroupReuse', 'NoReuse' + /// + [JsonProperty(PropertyName = "domainNameLabelScope")] + public PublicIpAddressDnsSettingsDomainNameLabelScope? DomainNameLabelScope { get; set; } + /// /// Gets or sets the Fully Qualified Domain Name of the A DNS record /// associated with the public IP. This is the concatenation of the diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettingsDomainNameLabelScope.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettingsDomainNameLabelScope.cs new file mode 100644 index 0000000000000..58fec574f97e7 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettingsDomainNameLabelScope.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for PublicIpAddressDnsSettingsDomainNameLabelScope. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PublicIpAddressDnsSettingsDomainNameLabelScope + { + [EnumMember(Value = "TenantReuse")] + TenantReuse, + [EnumMember(Value = "SubscriptionReuse")] + SubscriptionReuse, + [EnumMember(Value = "ResourceGroupReuse")] + ResourceGroupReuse, + [EnumMember(Value = "NoReuse")] + NoReuse + } + internal static class PublicIpAddressDnsSettingsDomainNameLabelScopeEnumExtension + { + internal static string ToSerializedValue(this PublicIpAddressDnsSettingsDomainNameLabelScope? value) + { + return value == null ? null : ((PublicIpAddressDnsSettingsDomainNameLabelScope)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this PublicIpAddressDnsSettingsDomainNameLabelScope value) + { + switch( value ) + { + case PublicIpAddressDnsSettingsDomainNameLabelScope.TenantReuse: + return "TenantReuse"; + case PublicIpAddressDnsSettingsDomainNameLabelScope.SubscriptionReuse: + return "SubscriptionReuse"; + case PublicIpAddressDnsSettingsDomainNameLabelScope.ResourceGroupReuse: + return "ResourceGroupReuse"; + case PublicIpAddressDnsSettingsDomainNameLabelScope.NoReuse: + return "NoReuse"; + } + return null; + } + + internal static PublicIpAddressDnsSettingsDomainNameLabelScope? ParsePublicIpAddressDnsSettingsDomainNameLabelScope(this string value) + { + switch( value ) + { + case "TenantReuse": + return PublicIpAddressDnsSettingsDomainNameLabelScope.TenantReuse; + case "SubscriptionReuse": + return PublicIpAddressDnsSettingsDomainNameLabelScope.SubscriptionReuse; + case "ResourceGroupReuse": + return PublicIpAddressDnsSettingsDomainNameLabelScope.ResourceGroupReuse; + case "NoReuse": + return PublicIpAddressDnsSettingsDomainNameLabelScope.NoReuse; + } + return null; + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ScrubbingRuleEntryMatchOperator.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ScrubbingRuleEntryMatchOperator.cs new file mode 100644 index 0000000000000..6ef893c9bb233 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ScrubbingRuleEntryMatchOperator.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for ScrubbingRuleEntryMatchOperator. + /// + public static class ScrubbingRuleEntryMatchOperator + { + public const string Equals = "Equals"; + public const string EqualsAny = "EqualsAny"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ScrubbingRuleEntryMatchVariable.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ScrubbingRuleEntryMatchVariable.cs new file mode 100644 index 0000000000000..34fd926f5f4b1 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ScrubbingRuleEntryMatchVariable.cs @@ -0,0 +1,26 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for ScrubbingRuleEntryMatchVariable. + /// + public static class ScrubbingRuleEntryMatchVariable + { + public const string RequestHeaderNames = "RequestHeaderNames"; + public const string RequestCookieNames = "RequestCookieNames"; + public const string RequestArgNames = "RequestArgNames"; + public const string RequestPostArgNames = "RequestPostArgNames"; + public const string RequestJSONArgNames = "RequestJSONArgNames"; + public const string RequestIPAddress = "RequestIPAddress"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ScrubbingRuleEntryState.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ScrubbingRuleEntryState.cs new file mode 100644 index 0000000000000..339ab4af2c097 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ScrubbingRuleEntryState.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for ScrubbingRuleEntryState. + /// + public static class ScrubbingRuleEntryState + { + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityAdminConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityAdminConfiguration.cs index 487ab9debc383..51eb29d558d88 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityAdminConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityAdminConfiguration.cs @@ -46,14 +46,17 @@ public SecurityAdminConfiguration() /// The provisioning state of the /// resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed' + /// Unique identifier for this + /// resource. /// The system metadata related to this /// resource. - public SecurityAdminConfiguration(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string description = default(string), IList applyOnNetworkIntentPolicyBasedServices = default(IList), string provisioningState = default(string), SystemData systemData = default(SystemData)) + public SecurityAdminConfiguration(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string description = default(string), IList applyOnNetworkIntentPolicyBasedServices = default(IList), string provisioningState = default(string), string resourceGuid = default(string), SystemData systemData = default(SystemData)) : base(id, name, type, etag) { Description = description; ApplyOnNetworkIntentPolicyBasedServices = applyOnNetworkIntentPolicyBasedServices; ProvisioningState = provisioningState; + ResourceGuid = resourceGuid; SystemData = systemData; CustomInit(); } @@ -82,6 +85,12 @@ public SecurityAdminConfiguration() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets unique identifier for this resource. + /// + [JsonProperty(PropertyName = "properties.resourceGuid")] + public string ResourceGuid { get; private set; } + /// /// Gets the system metadata related to this resource. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityRule.cs index 4e3aacf880161..670bd59cb4796 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityRule.cs @@ -39,6 +39,10 @@ public SecurityRule() /// 'Ah' /// The network traffic is allowed or denied. /// Possible values include: 'Allow', 'Deny' + /// The priority of the rule. The value can be + /// between 100 and 4096. The priority number must be unique for each + /// rule in the collection. The lower the priority number, the higher + /// the priority of the rule. /// The direction of the rule. The direction /// specifies if rule will be evaluated on incoming or outgoing /// traffic. Possible values include: 'Inbound', 'Outbound' @@ -71,10 +75,6 @@ public SecurityRule() /// The source port ranges. /// The destination port /// ranges. - /// The priority of the rule. The value can be - /// between 100 and 4096. The priority number must be unique for each - /// rule in the collection. The lower the priority number, the higher - /// the priority of the rule. /// The provisioning state of the /// security rule resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed' @@ -84,7 +84,7 @@ public SecurityRule() /// A unique read-only string that changes whenever /// the resource is updated. /// The type of the resource. - public SecurityRule(string protocol, string access, string direction, string id = default(string), string description = default(string), string sourcePortRange = default(string), string destinationPortRange = default(string), string sourceAddressPrefix = default(string), IList sourceAddressPrefixes = default(IList), IList sourceApplicationSecurityGroups = default(IList), string destinationAddressPrefix = default(string), IList destinationAddressPrefixes = default(IList), IList destinationApplicationSecurityGroups = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), int? priority = default(int?), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) + public SecurityRule(string protocol, string access, int priority, string direction, string id = default(string), string description = default(string), string sourcePortRange = default(string), string destinationPortRange = default(string), string sourceAddressPrefix = default(string), IList sourceAddressPrefixes = default(IList), IList sourceApplicationSecurityGroups = default(IList), string destinationAddressPrefix = default(string), IList destinationAddressPrefixes = default(IList), IList destinationApplicationSecurityGroups = default(IList), IList sourcePortRanges = default(IList), IList destinationPortRanges = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { Description = description; @@ -213,7 +213,7 @@ public SecurityRule() /// of the rule. /// [JsonProperty(PropertyName = "properties.priority")] - public int? Priority { get; set; } + public int Priority { get; set; } /// /// Gets or sets the direction of the rule. The direction specifies if diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPropertiesFormat.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPropertiesFormat.cs index 8ff2d54d983f0..e6931f07388f1 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPropertiesFormat.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPropertiesFormat.cs @@ -34,13 +34,16 @@ public ServiceEndpointPropertiesFormat() /// class. /// /// The type of the endpoint service. + /// Public IP Address Resource as + /// network identifier. /// A list of locations. /// The provisioning state of the /// service endpoint resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed' - public ServiceEndpointPropertiesFormat(string service = default(string), IList locations = default(IList), string provisioningState = default(string)) + public ServiceEndpointPropertiesFormat(string service = default(string), PublicIPAddress networkIdentifier = default(PublicIPAddress), IList locations = default(IList), string provisioningState = default(string)) { Service = service; + NetworkIdentifier = networkIdentifier; Locations = locations; ProvisioningState = provisioningState; CustomInit(); @@ -57,6 +60,12 @@ public ServiceEndpointPropertiesFormat() [JsonProperty(PropertyName = "service")] public string Service { get; set; } + /// + /// Gets or sets public IP Address Resource as network identifier. + /// + [JsonProperty(PropertyName = "networkIdentifier")] + public PublicIPAddress NetworkIdentifier { get; set; } + /// /// Gets or sets a list of locations. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SharingScope.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SharingScope.cs new file mode 100644 index 0000000000000..1ef17ebf82a93 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SharingScope.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for SharingScope. + /// + public static class SharingScope + { + public const string Tenant = "Tenant"; + public const string DelegatedServices = "DelegatedServices"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SingleQueryResult.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SingleQueryResult.cs index 63d7c6c210039..d60ffa105c747 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SingleQueryResult.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SingleQueryResult.cs @@ -32,10 +32,10 @@ public SingleQueryResult() /// The current mode enforced, 0 - Disabled, 1 - /// Alert, 2 -Deny /// Describes the severity of signature: 1 - - /// Low, 2 - Medium, 3 - High + /// High, 2 - Medium, 3 - Low /// Describes in which direction signature is - /// being enforced: 0 - Inbound, 1 - OutBound, 2 - - /// Bidirectional + /// being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 + /// - InternalOutbound /// Describes the groups the signature belongs /// to /// Describes what is the signature @@ -85,15 +85,16 @@ public SingleQueryResult() public int? Mode { get; set; } /// - /// Gets or sets describes the severity of signature: 1 - Low, 2 - - /// Medium, 3 - High + /// Gets or sets describes the severity of signature: 1 - High, 2 - + /// Medium, 3 - Low /// [JsonProperty(PropertyName = "severity")] public int? Severity { get; set; } /// /// Gets or sets describes in which direction signature is being - /// enforced: 0 - Inbound, 1 - OutBound, 2 - Bidirectional + /// enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - + /// InternalOutbound /// [JsonProperty(PropertyName = "direction")] public int? Direction { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Sku.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Sku.cs index 75f172a4cef63..66b2e862ba99e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Sku.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Sku.cs @@ -29,8 +29,9 @@ public Sku() /// /// Initializes a new instance of the Sku class. /// - /// The name of this Bastion Host. Possible values - /// include: 'Basic', 'Standard' + /// The name of the sku of this Bastion Host. + /// Possible values include: 'Basic', 'Standard', 'Developer', + /// 'Premium' public Sku(string name = default(string)) { Name = name; @@ -43,8 +44,8 @@ public Sku() partial void CustomInit(); /// - /// Gets or sets the name of this Bastion Host. Possible values - /// include: 'Basic', 'Standard' + /// Gets or sets the name of the sku of this Bastion Host. Possible + /// values include: 'Basic', 'Standard', 'Developer', 'Premium' /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Subnet.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Subnet.cs index 08c3259eef45b..75fe5eec63ea1 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Subnet.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Subnet.cs @@ -71,19 +71,29 @@ public Subnet() /// 'Deleting', 'Failed' /// Enable or Disable /// apply network policies on private end point in the subnet. Possible - /// values include: 'Enabled', 'Disabled' + /// values include: 'Enabled', 'Disabled', + /// 'NetworkSecurityGroupEnabled', 'RouteTableEnabled' /// Enable or Disable /// apply network policies on private link service in the subnet. /// Possible values include: 'Enabled', 'Disabled' - /// Application + /// Application /// gateway IP configurations of virtual network resource. + /// Set this property to Tenant to allow + /// sharing subnet with other subscriptions in your AAD tenant. This + /// property can only be set if defaultOutboundAccess is set to false, + /// both properties can only be set if subnet is empty. Possible values + /// include: 'Tenant', 'DelegatedServices' + /// Set this property to false to + /// disable default outbound connectivity for all VMs in the subnet. + /// This property can only be set at the time of subnet creation and + /// cannot be updated for an existing subnet. /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. /// A unique read-only string that changes whenever /// the resource is updated. /// Resource type. - public Subnet(string id = default(string), string addressPrefix = default(string), IList addressPrefixes = default(IList), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), RouteTable routeTable = default(RouteTable), SubResource natGateway = default(SubResource), IList serviceEndpoints = default(IList), IList serviceEndpointPolicies = default(IList), IList privateEndpoints = default(IList), IList ipConfigurations = default(IList), IList ipConfigurationProfiles = default(IList), IList ipAllocations = default(IList), IList resourceNavigationLinks = default(IList), IList serviceAssociationLinks = default(IList), IList delegations = default(IList), string purpose = default(string), string provisioningState = default(string), string privateEndpointNetworkPolicies = default(string), string privateLinkServiceNetworkPolicies = default(string), IList applicationGatewayIpConfigurations = default(IList), string name = default(string), string etag = default(string), string type = default(string)) + public Subnet(string id = default(string), string addressPrefix = default(string), IList addressPrefixes = default(IList), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), RouteTable routeTable = default(RouteTable), SubResource natGateway = default(SubResource), IList serviceEndpoints = default(IList), IList serviceEndpointPolicies = default(IList), IList privateEndpoints = default(IList), IList ipConfigurations = default(IList), IList ipConfigurationProfiles = default(IList), IList ipAllocations = default(IList), IList resourceNavigationLinks = default(IList), IList serviceAssociationLinks = default(IList), IList delegations = default(IList), string purpose = default(string), string provisioningState = default(string), string privateEndpointNetworkPolicies = default(string), string privateLinkServiceNetworkPolicies = default(string), IList applicationGatewayIPConfigurations = default(IList), string sharingScope = default(string), bool? defaultOutboundAccess = default(bool?), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { AddressPrefix = addressPrefix; @@ -104,7 +114,9 @@ public Subnet() ProvisioningState = provisioningState; PrivateEndpointNetworkPolicies = privateEndpointNetworkPolicies; PrivateLinkServiceNetworkPolicies = privateLinkServiceNetworkPolicies; - ApplicationGatewayIpConfigurations = applicationGatewayIpConfigurations; + ApplicationGatewayIPConfigurations = applicationGatewayIPConfigurations; + SharingScope = sharingScope; + DefaultOutboundAccess = defaultOutboundAccess; Name = name; Etag = etag; Type = type; @@ -220,7 +232,7 @@ public Subnet() /// /// Gets or sets enable or Disable apply network policies on private /// end point in the subnet. Possible values include: 'Enabled', - /// 'Disabled' + /// 'Disabled', 'NetworkSecurityGroupEnabled', 'RouteTableEnabled' /// [JsonProperty(PropertyName = "properties.privateEndpointNetworkPolicies")] public string PrivateEndpointNetworkPolicies { get; set; } @@ -237,8 +249,27 @@ public Subnet() /// Gets or sets application gateway IP configurations of virtual /// network resource. /// - [JsonProperty(PropertyName = "properties.applicationGatewayIpConfigurations")] - public IList ApplicationGatewayIpConfigurations { get; set; } + [JsonProperty(PropertyName = "properties.applicationGatewayIPConfigurations")] + public IList ApplicationGatewayIPConfigurations { get; set; } + + /// + /// Gets or sets set this property to Tenant to allow sharing subnet + /// with other subscriptions in your AAD tenant. This property can only + /// be set if defaultOutboundAccess is set to false, both properties + /// can only be set if subnet is empty. Possible values include: + /// 'Tenant', 'DelegatedServices' + /// + [JsonProperty(PropertyName = "properties.sharingScope")] + public string SharingScope { get; set; } + + /// + /// Gets or sets set this property to false to disable default outbound + /// connectivity for all VMs in the subnet. This property can only be + /// set at the time of subnet creation and cannot be updated for an + /// existing subnet. + /// + [JsonProperty(PropertyName = "properties.defaultOutboundAccess")] + public bool? DefaultOutboundAccess { get; set; } /// /// Gets or sets the name of the resource that is unique within a diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SyncMode.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SyncMode.cs new file mode 100644 index 0000000000000..c2a9348bcc907 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SyncMode.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for SyncMode. + /// + public static class SyncMode + { + public const string Automatic = "Automatic"; + public const string Manual = "Manual"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceAdditionalNicProperties.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceAdditionalNicProperties.cs new file mode 100644 index 0000000000000..711de9634add6 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceAdditionalNicProperties.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Network Virtual Appliance Additional Nic Properties + /// + /// + /// Network Virtual Appliance Additional NIC properties. + /// + public partial class VirtualApplianceAdditionalNicProperties + { + /// + /// Initializes a new instance of the + /// VirtualApplianceAdditionalNicProperties class. + /// + public VirtualApplianceAdditionalNicProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// VirtualApplianceAdditionalNicProperties class. + /// + /// Name of additional nic + /// Flag (true or false) for Intent for + /// Public Ip on additional nic + public VirtualApplianceAdditionalNicProperties(string name = default(string), bool? hasPublicIp = default(bool?)) + { + Name = name; + HasPublicIp = hasPublicIp; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of additional nic + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets flag (true or false) for Intent for Public Ip on + /// additional nic + /// + [JsonProperty(PropertyName = "hasPublicIp")] + public bool? HasPublicIp { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceIPConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceIPConfiguration.cs new file mode 100644 index 0000000000000..a5ce92eb69d95 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceIPConfiguration.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents a single IP configuration. + /// + public partial class VirtualApplianceIPConfiguration + { + /// + /// Initializes a new instance of the VirtualApplianceIPConfiguration + /// class. + /// + public VirtualApplianceIPConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VirtualApplianceIPConfiguration + /// class. + /// + /// Name of the IP configuration. + public VirtualApplianceIPConfiguration(string name = default(string), VirtualApplianceIPConfigurationProperties properties = default(VirtualApplianceIPConfigurationProperties)) + { + Name = name; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the IP configuration. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// + [JsonProperty(PropertyName = "properties")] + public VirtualApplianceIPConfigurationProperties Properties { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceIPConfigurationProperties.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceIPConfigurationProperties.cs new file mode 100644 index 0000000000000..508caa001f654 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceIPConfigurationProperties.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents a single IP configuration properties. + /// + public partial class VirtualApplianceIPConfigurationProperties + { + /// + /// Initializes a new instance of the + /// VirtualApplianceIPConfigurationProperties class. + /// + public VirtualApplianceIPConfigurationProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// VirtualApplianceIPConfigurationProperties class. + /// + /// Whether or not this is primary IP + /// configuration of the NIC. + public VirtualApplianceIPConfigurationProperties(bool? primary = default(bool?)) + { + Primary = primary; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets whether or not this is primary IP configuration of the + /// NIC. + /// + [JsonProperty(PropertyName = "primary")] + public bool? Primary { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceNetworkInterfaceConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceNetworkInterfaceConfiguration.cs new file mode 100644 index 0000000000000..9d94707731dd9 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceNetworkInterfaceConfiguration.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents a single NIC configuration. + /// + public partial class VirtualApplianceNetworkInterfaceConfiguration + { + /// + /// Initializes a new instance of the + /// VirtualApplianceNetworkInterfaceConfiguration class. + /// + public VirtualApplianceNetworkInterfaceConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// VirtualApplianceNetworkInterfaceConfiguration class. + /// + /// NIC type. This should be either PublicNic or + /// PrivateNic. Possible values include: 'PublicNic', + /// 'PrivateNic' + public VirtualApplianceNetworkInterfaceConfiguration(string nicType = default(string), VirtualApplianceNetworkInterfaceConfigurationProperties properties = default(VirtualApplianceNetworkInterfaceConfigurationProperties)) + { + NicType = nicType; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets NIC type. This should be either PublicNic or + /// PrivateNic. Possible values include: 'PublicNic', 'PrivateNic' + /// + [JsonProperty(PropertyName = "type")] + public string NicType { get; set; } + + /// + /// + [JsonProperty(PropertyName = "properties")] + public VirtualApplianceNetworkInterfaceConfigurationProperties Properties { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceNetworkInterfaceConfigurationProperties.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceNetworkInterfaceConfigurationProperties.cs new file mode 100644 index 0000000000000..41f732e3711ca --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceNetworkInterfaceConfigurationProperties.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Represents a single NIC configuration properties. + /// + public partial class VirtualApplianceNetworkInterfaceConfigurationProperties + { + /// + /// Initializes a new instance of the + /// VirtualApplianceNetworkInterfaceConfigurationProperties class. + /// + public VirtualApplianceNetworkInterfaceConfigurationProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// VirtualApplianceNetworkInterfaceConfigurationProperties class. + /// + public VirtualApplianceNetworkInterfaceConfigurationProperties(IList ipConfigurations = default(IList)) + { + IpConfigurations = ipConfigurations; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "ipConfigurations")] + public IList IpConfigurations { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceNicProperties.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceNicProperties.cs index 97b4e937d12d2..5d041691cedbf 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceNicProperties.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualApplianceNicProperties.cs @@ -31,14 +31,21 @@ public VirtualApplianceNicProperties() /// Initializes a new instance of the VirtualApplianceNicProperties /// class. /// + /// NIC type - PublicNic, PrivateNic, or + /// AdditionalNic. Possible values include: 'PublicNic', 'PrivateNic', + /// 'AdditionalNic' /// NIC name. /// Public IP address. /// Private IP address. - public VirtualApplianceNicProperties(string name = default(string), string publicIpAddress = default(string), string privateIpAddress = default(string)) + /// Instance on which nic is + /// attached. + public VirtualApplianceNicProperties(string nicType = default(string), string name = default(string), string publicIpAddress = default(string), string privateIpAddress = default(string), string instanceName = default(string)) { + NicType = nicType; Name = name; PublicIpAddress = publicIpAddress; PrivateIpAddress = privateIpAddress; + InstanceName = instanceName; CustomInit(); } @@ -47,6 +54,13 @@ public VirtualApplianceNicProperties() /// partial void CustomInit(); + /// + /// Gets NIC type - PublicNic, PrivateNic, or AdditionalNic. Possible + /// values include: 'PublicNic', 'PrivateNic', 'AdditionalNic' + /// + [JsonProperty(PropertyName = "nicType")] + public string NicType { get; private set; } + /// /// Gets NIC name. /// @@ -65,5 +79,11 @@ public VirtualApplianceNicProperties() [JsonProperty(PropertyName = "privateIpAddress")] public string PrivateIpAddress { get; private set; } + /// + /// Gets instance on which nic is attached. + /// + [JsonProperty(PropertyName = "instanceName")] + public string InstanceName { get; private set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs index 179f588ebb3a9..f33ddd7bfa988 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs @@ -39,6 +39,8 @@ public VirtualNetworkGateway() /// Resource type. /// Resource location. /// Resource tags. + /// Autoscale configuration for + /// virutal network gateway /// IP configurations for virtual /// network gateway. /// The type of this virtual network gateway. @@ -99,13 +101,20 @@ public VirtualNetworkGateway() /// accept traffic from other Azure Virtual Networks. This /// configuration does not support connectivity to Azure Virtual /// WAN. + /// Property to indicate if the Express Route + /// Gateway serves traffic when there are multiple Express Route + /// Gateways in the vnet. Possible values include: 'Enabled', + /// 'Disabled' /// The extended location of type local /// virtual network gateway. /// A unique read-only string that changes whenever /// the resource is updated. - public VirtualNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ipConfigurations = default(IList), string gatewayType = default(string), string vpnType = default(string), string vpnGatewayGeneration = default(string), bool? enableBgp = default(bool?), bool? enablePrivateIpAddress = default(bool?), bool? activeActive = default(bool?), bool? disableIPSecReplayProtection = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), IList virtualNetworkGatewayPolicyGroups = default(IList), BgpSettings bgpSettings = default(BgpSettings), AddressSpace customRoutes = default(AddressSpace), string resourceGuid = default(string), string provisioningState = default(string), bool? enableDnsForwarding = default(bool?), string inboundDnsForwardingEndpoint = default(string), string vNetExtendedLocationResourceId = default(string), IList natRules = default(IList), bool? enableBgpRouteTranslationForNat = default(bool?), bool? allowVirtualWanTraffic = default(bool?), bool? allowRemoteVnetTraffic = default(bool?), ExtendedLocation extendedLocation = default(ExtendedLocation), string etag = default(string)) + /// The identity of the virtual network gateway, + /// if configured. + public VirtualNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), VirtualNetworkGatewayAutoScaleConfiguration autoScaleConfiguration = default(VirtualNetworkGatewayAutoScaleConfiguration), IList ipConfigurations = default(IList), string gatewayType = default(string), string vpnType = default(string), string vpnGatewayGeneration = default(string), bool? enableBgp = default(bool?), bool? enablePrivateIpAddress = default(bool?), bool? activeActive = default(bool?), bool? disableIPSecReplayProtection = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), IList virtualNetworkGatewayPolicyGroups = default(IList), BgpSettings bgpSettings = default(BgpSettings), AddressSpace customRoutes = default(AddressSpace), string resourceGuid = default(string), string provisioningState = default(string), bool? enableDnsForwarding = default(bool?), string inboundDnsForwardingEndpoint = default(string), string vNetExtendedLocationResourceId = default(string), IList natRules = default(IList), bool? enableBgpRouteTranslationForNat = default(bool?), bool? allowVirtualWanTraffic = default(bool?), bool? allowRemoteVnetTraffic = default(bool?), string adminState = default(string), ExtendedLocation extendedLocation = default(ExtendedLocation), string etag = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) : base(id, name, type, location, tags) { + AutoScaleConfiguration = autoScaleConfiguration; IpConfigurations = ipConfigurations; GatewayType = gatewayType; VpnType = vpnType; @@ -129,8 +138,10 @@ public VirtualNetworkGateway() EnableBgpRouteTranslationForNat = enableBgpRouteTranslationForNat; AllowVirtualWanTraffic = allowVirtualWanTraffic; AllowRemoteVnetTraffic = allowRemoteVnetTraffic; + AdminState = adminState; ExtendedLocation = extendedLocation; Etag = etag; + Identity = identity; CustomInit(); } @@ -139,6 +150,12 @@ public VirtualNetworkGateway() /// partial void CustomInit(); + /// + /// Gets or sets autoscale configuration for virutal network gateway + /// + [JsonProperty(PropertyName = "properties.autoScaleConfiguration")] + public VirtualNetworkGatewayAutoScaleConfiguration AutoScaleConfiguration { get; set; } + /// /// Gets or sets IP configurations for virtual network gateway. /// @@ -299,6 +316,14 @@ public VirtualNetworkGateway() [JsonProperty(PropertyName = "properties.allowRemoteVnetTraffic")] public bool? AllowRemoteVnetTraffic { get; set; } + /// + /// Gets or sets property to indicate if the Express Route Gateway + /// serves traffic when there are multiple Express Route Gateways in + /// the vnet. Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.adminState")] + public string AdminState { get; set; } + /// /// Gets or sets the extended location of type local virtual network /// gateway. @@ -313,6 +338,13 @@ public VirtualNetworkGateway() [JsonProperty(PropertyName = "etag")] public string Etag { get; private set; } + /// + /// Gets or sets the identity of the virtual network gateway, if + /// configured. + /// + [JsonProperty(PropertyName = "identity")] + public ManagedServiceIdentity Identity { get; set; } + /// /// Validate the object. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayAutoScaleBounds.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayAutoScaleBounds.cs new file mode 100644 index 0000000000000..8984992cf1c0b --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayAutoScaleBounds.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class VirtualNetworkGatewayAutoScaleBounds + { + /// + /// Initializes a new instance of the + /// VirtualNetworkGatewayAutoScaleBounds class. + /// + public VirtualNetworkGatewayAutoScaleBounds() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// VirtualNetworkGatewayAutoScaleBounds class. + /// + /// Minimum scale Units for Autoscale + /// configuration + /// Maximum Scale Units for Autoscale + /// configuration + public VirtualNetworkGatewayAutoScaleBounds(int? min = default(int?), int? max = default(int?)) + { + Min = min; + Max = max; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets minimum scale Units for Autoscale configuration + /// + [JsonProperty(PropertyName = "min")] + public int? Min { get; set; } + + /// + /// Gets or sets maximum Scale Units for Autoscale configuration + /// + [JsonProperty(PropertyName = "max")] + public int? Max { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayAutoScaleConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayAutoScaleConfiguration.cs new file mode 100644 index 0000000000000..03b633bc42fc0 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayAutoScaleConfiguration.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Virtual Network Gateway Autoscale Configuration details + /// + public partial class VirtualNetworkGatewayAutoScaleConfiguration + { + /// + /// Initializes a new instance of the + /// VirtualNetworkGatewayAutoScaleConfiguration class. + /// + public VirtualNetworkGatewayAutoScaleConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// VirtualNetworkGatewayAutoScaleConfiguration class. + /// + /// The bounds of the autoscale + /// configuration + public VirtualNetworkGatewayAutoScaleConfiguration(VirtualNetworkGatewayAutoScaleBounds bounds = default(VirtualNetworkGatewayAutoScaleBounds)) + { + Bounds = bounds; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the bounds of the autoscale configuration + /// + [JsonProperty(PropertyName = "bounds")] + public VirtualNetworkGatewayAutoScaleBounds Bounds { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnection.cs index 4efccfb1a860a..ca0585b41b7c6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnection.cs @@ -94,9 +94,14 @@ public VirtualNetworkGatewayConnection() /// Bypass the ExpressRoute /// gateway when accessing private-links. ExpressRoute FastPath /// (expressRouteGatewayBypass) must be enabled. + /// Gateway connection authentication + /// type. Possible values include: 'PSK', 'Certificate' + /// Certificate Authentication + /// information for a certificate based authentication + /// connection. /// A unique read-only string that changes whenever /// the resource is updated. - public VirtualNetworkGatewayConnection(VirtualNetworkGateway virtualNetworkGateway1, string connectionType, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string authorizationKey = default(string), VirtualNetworkGateway virtualNetworkGateway2 = default(VirtualNetworkGateway), LocalNetworkGateway localNetworkGateway2 = default(LocalNetworkGateway), IList ingressNatRules = default(IList), IList egressNatRules = default(IList), string connectionProtocol = default(string), int? routingWeight = default(int?), int? dpdTimeoutSeconds = default(int?), string connectionMode = default(string), string sharedKey = default(string), string connectionStatus = default(string), IList tunnelConnectionStatus = default(IList), long? egressBytesTransferred = default(long?), long? ingressBytesTransferred = default(long?), SubResource peer = default(SubResource), bool? enableBgp = default(bool?), IList gatewayCustomBgpIpAddresses = default(IList), bool? useLocalAzureIpAddress = default(bool?), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), IList trafficSelectorPolicies = default(IList), string resourceGuid = default(string), string provisioningState = default(string), bool? expressRouteGatewayBypass = default(bool?), bool? enablePrivateLinkFastPath = default(bool?), string etag = default(string)) + public VirtualNetworkGatewayConnection(VirtualNetworkGateway virtualNetworkGateway1, string connectionType, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string authorizationKey = default(string), VirtualNetworkGateway virtualNetworkGateway2 = default(VirtualNetworkGateway), LocalNetworkGateway localNetworkGateway2 = default(LocalNetworkGateway), IList ingressNatRules = default(IList), IList egressNatRules = default(IList), string connectionProtocol = default(string), int? routingWeight = default(int?), int? dpdTimeoutSeconds = default(int?), string connectionMode = default(string), string sharedKey = default(string), string connectionStatus = default(string), IList tunnelConnectionStatus = default(IList), long? egressBytesTransferred = default(long?), long? ingressBytesTransferred = default(long?), SubResource peer = default(SubResource), bool? enableBgp = default(bool?), IList gatewayCustomBgpIpAddresses = default(IList), bool? useLocalAzureIpAddress = default(bool?), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), IList trafficSelectorPolicies = default(IList), string resourceGuid = default(string), string provisioningState = default(string), bool? expressRouteGatewayBypass = default(bool?), bool? enablePrivateLinkFastPath = default(bool?), string authenticationType = default(string), CertificateAuthentication certificateAuthentication = default(CertificateAuthentication), string etag = default(string)) : base(id, name, type, location, tags) { AuthorizationKey = authorizationKey; @@ -126,6 +131,8 @@ public VirtualNetworkGatewayConnection() ProvisioningState = provisioningState; ExpressRouteGatewayBypass = expressRouteGatewayBypass; EnablePrivateLinkFastPath = enablePrivateLinkFastPath; + AuthenticationType = authenticationType; + CertificateAuthentication = certificateAuthentication; Etag = etag; CustomInit(); } @@ -310,6 +317,20 @@ public VirtualNetworkGatewayConnection() [JsonProperty(PropertyName = "properties.enablePrivateLinkFastPath")] public bool? EnablePrivateLinkFastPath { get; set; } + /// + /// Gets or sets gateway connection authentication type. Possible + /// values include: 'PSK', 'Certificate' + /// + [JsonProperty(PropertyName = "properties.authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets certificate Authentication information for a + /// certificate based authentication connection. + /// + [JsonProperty(PropertyName = "properties.certificateAuthentication")] + public CertificateAuthentication CertificateAuthentication { get; set; } + /// /// Gets a unique read-only string that changes whenever the resource /// is updated. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIPConfiguration.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIpConfiguration.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIPConfiguration.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySku.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySku.cs index 83a880ef36f80..c8f23c16d3255 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySku.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySku.cs @@ -33,12 +33,12 @@ public VirtualNetworkGatewaySku() /// 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', /// 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw4', 'VpnGw5', 'VpnGw1AZ', /// 'VpnGw2AZ', 'VpnGw3AZ', 'VpnGw4AZ', 'VpnGw5AZ', 'ErGw1AZ', - /// 'ErGw2AZ', 'ErGw3AZ' + /// 'ErGw2AZ', 'ErGw3AZ', 'ErGwScale' /// Gateway SKU tier. Possible values include: /// 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', /// 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw4', 'VpnGw5', 'VpnGw1AZ', /// 'VpnGw2AZ', 'VpnGw3AZ', 'VpnGw4AZ', 'VpnGw5AZ', 'ErGw1AZ', - /// 'ErGw2AZ', 'ErGw3AZ' + /// 'ErGw2AZ', 'ErGw3AZ', 'ErGwScale' /// The capacity. public VirtualNetworkGatewaySku(string name = default(string), string tier = default(string), int? capacity = default(int?)) { @@ -57,7 +57,8 @@ public VirtualNetworkGatewaySku() /// Gets or sets gateway SKU name. Possible values include: 'Basic', /// 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', /// 'VpnGw2', 'VpnGw3', 'VpnGw4', 'VpnGw5', 'VpnGw1AZ', 'VpnGw2AZ', - /// 'VpnGw3AZ', 'VpnGw4AZ', 'VpnGw5AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' + /// 'VpnGw3AZ', 'VpnGw4AZ', 'VpnGw5AZ', 'ErGw1AZ', 'ErGw2AZ', + /// 'ErGw3AZ', 'ErGwScale' /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } @@ -66,7 +67,8 @@ public VirtualNetworkGatewaySku() /// Gets or sets gateway SKU tier. Possible values include: 'Basic', /// 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', /// 'VpnGw2', 'VpnGw3', 'VpnGw4', 'VpnGw5', 'VpnGw1AZ', 'VpnGw2AZ', - /// 'VpnGw3AZ', 'VpnGw4AZ', 'VpnGw5AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' + /// 'VpnGw3AZ', 'VpnGw4AZ', 'VpnGw5AZ', 'ErGw1AZ', 'ErGw2AZ', + /// 'ErGw3AZ', 'ErGwScale' /// [JsonProperty(PropertyName = "tier")] public string Tier { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuName.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuName.cs index 18bf9088ee70f..0056693799191 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuName.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuName.cs @@ -33,5 +33,6 @@ public static class VirtualNetworkGatewaySkuName public const string ErGw1AZ = "ErGw1AZ"; public const string ErGw2AZ = "ErGw2AZ"; public const string ErGw3AZ = "ErGw3AZ"; + public const string ErGwScale = "ErGwScale"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuTier.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuTier.cs index 9d353fbe6d049..40c9f35642320 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuTier.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuTier.cs @@ -33,5 +33,6 @@ public static class VirtualNetworkGatewaySkuTier public const string ErGw1AZ = "ErGw1AZ"; public const string ErGw2AZ = "ErGw2AZ"; public const string ErGw3AZ = "ErGw3AZ"; + public const string ErGwScale = "ErGwScale"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPeering.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPeering.cs index 8d387c34da1a6..145ec345dd5ed 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPeering.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPeering.cs @@ -13,6 +13,8 @@ namespace Microsoft.Azure.Management.Network.Models using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -52,6 +54,10 @@ public VirtualNetworkPeering() /// different region (preview). See here to register for the preview /// and learn more /// (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). + /// The local address space of the + /// local virtual network that is peered. + /// The current local + /// address space of the local virtual network that is peered. /// The reference to the address space /// peered with the remote virtual network. /// The reference to the @@ -74,13 +80,21 @@ public VirtualNetworkPeering() /// provisioning state of the remote gateway. /// The resourceGuid property of the Virtual /// Network peering resource. + /// Whether complete virtual network + /// address space is peered. + /// Whether only Ipv6 address space + /// is peered for subnet peering. + /// List of local subnet names that are + /// subnet peered with remote virtual network. + /// List of remote subnet names from + /// remote virtual network that are subnet peered. /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. /// A unique read-only string that changes whenever /// the resource is updated. /// Resource type. - public VirtualNetworkPeering(string id = default(string), bool? allowVirtualNetworkAccess = default(bool?), bool? allowForwardedTraffic = default(bool?), bool? allowGatewayTransit = default(bool?), bool? useRemoteGateways = default(bool?), SubResource remoteVirtualNetwork = default(SubResource), AddressSpace remoteAddressSpace = default(AddressSpace), AddressSpace remoteVirtualNetworkAddressSpace = default(AddressSpace), VirtualNetworkBgpCommunities remoteBgpCommunities = default(VirtualNetworkBgpCommunities), VirtualNetworkEncryption remoteVirtualNetworkEncryption = default(VirtualNetworkEncryption), string peeringState = default(string), string peeringSyncLevel = default(string), string provisioningState = default(string), bool? doNotVerifyRemoteGateways = default(bool?), string resourceGuid = default(string), string name = default(string), string etag = default(string), string type = default(string)) + public VirtualNetworkPeering(string id = default(string), bool? allowVirtualNetworkAccess = default(bool?), bool? allowForwardedTraffic = default(bool?), bool? allowGatewayTransit = default(bool?), bool? useRemoteGateways = default(bool?), SubResource remoteVirtualNetwork = default(SubResource), AddressSpace localAddressSpace = default(AddressSpace), AddressSpace localVirtualNetworkAddressSpace = default(AddressSpace), AddressSpace remoteAddressSpace = default(AddressSpace), AddressSpace remoteVirtualNetworkAddressSpace = default(AddressSpace), VirtualNetworkBgpCommunities remoteBgpCommunities = default(VirtualNetworkBgpCommunities), VirtualNetworkEncryption remoteVirtualNetworkEncryption = default(VirtualNetworkEncryption), string peeringState = default(string), string peeringSyncLevel = default(string), string provisioningState = default(string), bool? doNotVerifyRemoteGateways = default(bool?), string resourceGuid = default(string), bool? peerCompleteVnets = default(bool?), bool? enableOnlyIPv6Peering = default(bool?), IList localSubnetNames = default(IList), IList remoteSubnetNames = default(IList), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { AllowVirtualNetworkAccess = allowVirtualNetworkAccess; @@ -88,6 +102,8 @@ public VirtualNetworkPeering() AllowGatewayTransit = allowGatewayTransit; UseRemoteGateways = useRemoteGateways; RemoteVirtualNetwork = remoteVirtualNetwork; + LocalAddressSpace = localAddressSpace; + LocalVirtualNetworkAddressSpace = localVirtualNetworkAddressSpace; RemoteAddressSpace = remoteAddressSpace; RemoteVirtualNetworkAddressSpace = remoteVirtualNetworkAddressSpace; RemoteBgpCommunities = remoteBgpCommunities; @@ -97,6 +113,10 @@ public VirtualNetworkPeering() ProvisioningState = provisioningState; DoNotVerifyRemoteGateways = doNotVerifyRemoteGateways; ResourceGuid = resourceGuid; + PeerCompleteVnets = peerCompleteVnets; + EnableOnlyIPv6Peering = enableOnlyIPv6Peering; + LocalSubnetNames = localSubnetNames; + RemoteSubnetNames = remoteSubnetNames; Name = name; Etag = etag; Type = type; @@ -150,6 +170,20 @@ public VirtualNetworkPeering() [JsonProperty(PropertyName = "properties.remoteVirtualNetwork")] public SubResource RemoteVirtualNetwork { get; set; } + /// + /// Gets or sets the local address space of the local virtual network + /// that is peered. + /// + [JsonProperty(PropertyName = "properties.localAddressSpace")] + public AddressSpace LocalAddressSpace { get; set; } + + /// + /// Gets or sets the current local address space of the local virtual + /// network that is peered. + /// + [JsonProperty(PropertyName = "properties.localVirtualNetworkAddressSpace")] + public AddressSpace LocalVirtualNetworkAddressSpace { get; set; } + /// /// Gets or sets the reference to the address space peered with the /// remote virtual network. @@ -214,6 +248,34 @@ public VirtualNetworkPeering() [JsonProperty(PropertyName = "properties.resourceGuid")] public string ResourceGuid { get; private set; } + /// + /// Gets or sets whether complete virtual network address space is + /// peered. + /// + [JsonProperty(PropertyName = "properties.peerCompleteVnets")] + public bool? PeerCompleteVnets { get; set; } + + /// + /// Gets or sets whether only Ipv6 address space is peered for subnet + /// peering. + /// + [JsonProperty(PropertyName = "properties.enableOnlyIPv6Peering")] + public bool? EnableOnlyIPv6Peering { get; set; } + + /// + /// Gets or sets list of local subnet names that are subnet peered with + /// remote virtual network. + /// + [JsonProperty(PropertyName = "properties.localSubnetNames")] + public IList LocalSubnetNames { get; set; } + + /// + /// Gets or sets list of remote subnet names from remote virtual + /// network that are subnet peered. + /// + [JsonProperty(PropertyName = "properties.remoteSubnetNames")] + public IList RemoteSubnetNames { get; set; } + /// /// Gets or sets the name of the resource that is unique within a /// resource group. This name can be used to access the resource. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPrivateEndpointNetworkPolicies.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPrivateEndpointNetworkPolicies.cs index f163072d5afd6..3aa9fc038a71e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPrivateEndpointNetworkPolicies.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPrivateEndpointNetworkPolicies.cs @@ -18,5 +18,7 @@ public static class VirtualNetworkPrivateEndpointNetworkPolicies { public const string Enabled = "Enabled"; public const string Disabled = "Disabled"; + public const string NetworkSecurityGroupEnabled = "NetworkSecurityGroupEnabled"; + public const string RouteTableEnabled = "RouteTableEnabled"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkTap.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkTap.cs index fae7eacd4bbbd..228b39bbae0a6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkTap.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkTap.cs @@ -125,5 +125,28 @@ public VirtualNetworkTap() [JsonProperty(PropertyName = "etag")] public string Etag { get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (NetworkInterfaceTapConfigurations != null) + { + foreach (var element in NetworkInterfaceTapConfigurations) + { + if (element != null) + { + element.Validate(); + } + } + } + if (DestinationNetworkInterfaceIPConfiguration != null) + { + DestinationNetworkInterfaceIPConfiguration.Validate(); + } + } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs index 8724aba1b6719..d97a081c96c02 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs @@ -71,13 +71,15 @@ public VpnSiteLinkConnection() /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// List of ingress NatRules. /// List of egress NatRules. + /// Dead Peer Detection timeout in + /// seconds for VpnLink connection. /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. /// A unique read-only string that changes whenever /// the resource is updated. /// Resource type. - public VpnSiteLinkConnection(string id = default(string), SubResource vpnSiteLink = default(SubResource), int? routingWeight = default(int?), string vpnLinkConnectionMode = default(string), string connectionStatus = default(string), string vpnConnectionProtocolType = default(string), long? ingressBytesTransferred = default(long?), long? egressBytesTransferred = default(long?), int? connectionBandwidth = default(int?), string sharedKey = default(string), bool? enableBgp = default(bool?), IList vpnGatewayCustomBgpAddresses = default(IList), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), bool? enableRateLimiting = default(bool?), bool? useLocalAzureIpAddress = default(bool?), string provisioningState = default(string), IList ingressNatRules = default(IList), IList egressNatRules = default(IList), string name = default(string), string etag = default(string), string type = default(string)) + public VpnSiteLinkConnection(string id = default(string), SubResource vpnSiteLink = default(SubResource), int? routingWeight = default(int?), string vpnLinkConnectionMode = default(string), string connectionStatus = default(string), string vpnConnectionProtocolType = default(string), long? ingressBytesTransferred = default(long?), long? egressBytesTransferred = default(long?), int? connectionBandwidth = default(int?), string sharedKey = default(string), bool? enableBgp = default(bool?), IList vpnGatewayCustomBgpAddresses = default(IList), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), bool? enableRateLimiting = default(bool?), bool? useLocalAzureIpAddress = default(bool?), string provisioningState = default(string), IList ingressNatRules = default(IList), IList egressNatRules = default(IList), int? dpdTimeoutSeconds = default(int?), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { VpnSiteLink = vpnSiteLink; @@ -98,6 +100,7 @@ public VpnSiteLinkConnection() ProvisioningState = provisioningState; IngressNatRules = ingressNatRules; EgressNatRules = egressNatRules; + DpdTimeoutSeconds = dpdTimeoutSeconds; Name = name; Etag = etag; Type = type; @@ -223,6 +226,13 @@ public VpnSiteLinkConnection() [JsonProperty(PropertyName = "properties.egressNatRules")] public IList EgressNatRules { get; set; } + /// + /// Gets or sets dead Peer Detection timeout in seconds for VpnLink + /// connection. + /// + [JsonProperty(PropertyName = "properties.dpdTimeoutSeconds")] + public int? DpdTimeoutSeconds { get; set; } + /// /// Gets or sets the name of the resource that is unique within a /// resource group. This name can be used to access the resource. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallAction.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallAction.cs index ad71740c4c586..a0455bc3b61a3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallAction.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallAction.cs @@ -19,5 +19,6 @@ public static class WebApplicationFirewallAction public const string Allow = "Allow"; public const string Block = "Block"; public const string Log = "Log"; + public const string JSChallenge = "JSChallenge"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs index bdf198041ffc2..9dd14bcbf1e1e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs @@ -37,10 +37,10 @@ public WebApplicationFirewallCustomRule() /// Priority of the rule. Rules with a lower /// value will be evaluated before rules with a higher value. /// The rule type. Possible values include: - /// 'MatchRule', 'Invalid' + /// 'MatchRule', 'RateLimitRule', 'Invalid' /// List of match conditions. /// Type of Actions. Possible values include: - /// 'Allow', 'Block', 'Log' + /// 'Allow', 'Block', 'Log', 'JSChallenge' /// The name of the resource that is unique within a /// policy. This name can be used to access the resource. /// A unique read-only string that changes whenever @@ -48,14 +48,26 @@ public WebApplicationFirewallCustomRule() /// Describes if the custom rule is in enabled or /// disabled state. Defaults to Enabled if not specified. Possible /// values include: 'Disabled', 'Enabled' - public WebApplicationFirewallCustomRule(int priority, string ruleType, IList matchConditions, string action, string name = default(string), string etag = default(string), string state = default(string)) + /// Duration over which Rate Limit + /// policy will be applied. Applies only when ruleType is + /// RateLimitRule. Possible values include: 'OneMin', + /// 'FiveMins' + /// Rate Limit threshold to apply in + /// case ruleType is RateLimitRule. Must be greater than or equal to + /// 1 + /// List of user session identifier + /// group by clauses. + public WebApplicationFirewallCustomRule(int priority, string ruleType, IList matchConditions, string action, string name = default(string), string etag = default(string), string state = default(string), string rateLimitDuration = default(string), int? rateLimitThreshold = default(int?), IList groupByUserSession = default(IList)) { Name = name; Etag = etag; Priority = priority; State = state; + RateLimitDuration = rateLimitDuration; + RateLimitThreshold = rateLimitThreshold; RuleType = ruleType; MatchConditions = matchConditions; + GroupByUserSession = groupByUserSession; Action = action; CustomInit(); } @@ -94,9 +106,24 @@ public WebApplicationFirewallCustomRule() [JsonProperty(PropertyName = "state")] public string State { get; set; } + /// + /// Gets or sets duration over which Rate Limit policy will be applied. + /// Applies only when ruleType is RateLimitRule. Possible values + /// include: 'OneMin', 'FiveMins' + /// + [JsonProperty(PropertyName = "rateLimitDuration")] + public string RateLimitDuration { get; set; } + + /// + /// Gets or sets rate Limit threshold to apply in case ruleType is + /// RateLimitRule. Must be greater than or equal to 1 + /// + [JsonProperty(PropertyName = "rateLimitThreshold")] + public int? RateLimitThreshold { get; set; } + /// /// Gets or sets the rule type. Possible values include: 'MatchRule', - /// 'Invalid' + /// 'RateLimitRule', 'Invalid' /// [JsonProperty(PropertyName = "ruleType")] public string RuleType { get; set; } @@ -107,9 +134,15 @@ public WebApplicationFirewallCustomRule() [JsonProperty(PropertyName = "matchConditions")] public IList MatchConditions { get; set; } + /// + /// Gets or sets list of user session identifier group by clauses. + /// + [JsonProperty(PropertyName = "groupByUserSession")] + public IList GroupByUserSession { get; set; } + /// /// Gets or sets type of Actions. Possible values include: 'Allow', - /// 'Block', 'Log' + /// 'Block', 'Log', 'JSChallenge' /// [JsonProperty(PropertyName = "action")] public string Action { get; set; } @@ -151,6 +184,16 @@ public virtual void Validate() } } } + if (GroupByUserSession != null) + { + foreach (var element1 in GroupByUserSession) + { + if (element1 != null) + { + element1.Validate(); + } + } + } } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallRuleType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallRuleType.cs index bfff0efe51192..73f038a1a5ff4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallRuleType.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallRuleType.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.Management.Network.Models public static class WebApplicationFirewallRuleType { public const string MatchRule = "MatchRule"; + public const string RateLimitRule = "RateLimitRule"; public const string Invalid = "Invalid"; } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallScrubbingRules.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallScrubbingRules.cs new file mode 100644 index 0000000000000..40ac40ad8aa0f --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallScrubbingRules.cs @@ -0,0 +1,112 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Allow certain variables to be scrubbed on WAF logs + /// + public partial class WebApplicationFirewallScrubbingRules + { + /// + /// Initializes a new instance of the + /// WebApplicationFirewallScrubbingRules class. + /// + public WebApplicationFirewallScrubbingRules() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// WebApplicationFirewallScrubbingRules class. + /// + /// The variable to be scrubbed from the + /// logs. Possible values include: 'RequestHeaderNames', + /// 'RequestCookieNames', 'RequestArgNames', 'RequestPostArgNames', + /// 'RequestJSONArgNames', 'RequestIPAddress' + /// When matchVariable is a + /// collection, operate on the selector to specify which elements in + /// the collection this rule applies to. Possible values include: + /// 'Equals', 'EqualsAny' + /// When matchVariable is a collection, operator + /// used to specify which elements in the collection this rule applies + /// to. + /// Defines the state of log scrubbing rule. + /// Default value is Enabled. Possible values include: 'Enabled', + /// 'Disabled' + public WebApplicationFirewallScrubbingRules(string matchVariable, string selectorMatchOperator, string selector = default(string), string state = default(string)) + { + MatchVariable = matchVariable; + SelectorMatchOperator = selectorMatchOperator; + Selector = selector; + State = state; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the variable to be scrubbed from the logs. Possible + /// values include: 'RequestHeaderNames', 'RequestCookieNames', + /// 'RequestArgNames', 'RequestPostArgNames', 'RequestJSONArgNames', + /// 'RequestIPAddress' + /// + [JsonProperty(PropertyName = "matchVariable")] + public string MatchVariable { get; set; } + + /// + /// Gets or sets when matchVariable is a collection, operate on the + /// selector to specify which elements in the collection this rule + /// applies to. Possible values include: 'Equals', 'EqualsAny' + /// + [JsonProperty(PropertyName = "selectorMatchOperator")] + public string SelectorMatchOperator { get; set; } + + /// + /// Gets or sets when matchVariable is a collection, operator used to + /// specify which elements in the collection this rule applies to. + /// + [JsonProperty(PropertyName = "selector")] + public string Selector { get; set; } + + /// + /// Gets or sets defines the state of log scrubbing rule. Default value + /// is Enabled. Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "state")] + public string State { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (MatchVariable == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MatchVariable"); + } + if (SelectorMatchOperator == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SelectorMatchOperator"); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallScrubbingState.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallScrubbingState.cs new file mode 100644 index 0000000000000..3c39fe64ef2ca --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallScrubbingState.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + + /// + /// Defines values for WebApplicationFirewallScrubbingState. + /// + public static class WebApplicationFirewallScrubbingState + { + public const string Disabled = "Disabled"; + public const string Enabled = "Enabled"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatGatewaysOperations.cs index 64ab19b214ec4..7038323bd03b6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatGatewaysOperations.cs @@ -119,7 +119,7 @@ internal NatGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal NatGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal NatGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -720,7 +720,7 @@ internal NatGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -909,7 +909,7 @@ internal NatGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1092,7 +1092,7 @@ internal NatGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatRulesOperations.cs index c0c02805b0983..804569985b839 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatRulesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatRulesOperations.cs @@ -101,7 +101,7 @@ internal NatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "natRuleName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal NatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -560,7 +560,7 @@ internal NatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "natRuleParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -785,7 +785,7 @@ internal NatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "natRuleName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkGroupsOperations.cs index cf7c220f04754..00afca0f6bb06 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkGroupsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkGroupsOperations.cs @@ -101,7 +101,7 @@ internal NetworkGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "networkGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -316,7 +316,7 @@ internal NetworkGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "networkGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -607,7 +607,7 @@ internal NetworkGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -820,7 +820,7 @@ internal NetworkGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "networkGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceIPConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceIPConfigurationsOperations.cs index 3b8023959e049..549090b49f28e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceIPConfigurationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceIPConfigurationsOperations.cs @@ -94,7 +94,7 @@ internal NetworkInterfaceIPConfigurationsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -295,7 +295,7 @@ internal NetworkInterfaceIPConfigurationsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceLoadBalancersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceLoadBalancersOperations.cs index 2859900d6209e..4be5c765f69f9 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceLoadBalancersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceLoadBalancersOperations.cs @@ -94,7 +94,7 @@ internal NetworkInterfaceLoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceTapConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceTapConfigurationsOperations.cs index 645af16159c89..3315b262840ca 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceTapConfigurationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceTapConfigurationsOperations.cs @@ -126,7 +126,7 @@ internal NetworkInterfaceTapConfigurationsOperations(NetworkManagementClient cli { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal NetworkInterfaceTapConfigurationsOperations(NetworkManagementClient cli { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -548,7 +548,7 @@ internal NetworkInterfaceTapConfigurationsOperations(NetworkManagementClient cli { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -736,11 +736,15 @@ internal NetworkInterfaceTapConfigurationsOperations(NetworkManagementClient cli { throw new ValidationException(ValidationRules.CannotBeNull, "tapConfigurationParameters"); } + if (tapConfigurationParameters != null) + { + tapConfigurationParameters.Validate(); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfacesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfacesOperations.cs index 594e55a6527b8..4a027c7a41210 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfacesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfacesOperations.cs @@ -102,7 +102,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -298,7 +298,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -509,7 +509,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -737,7 +737,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -968,7 +968,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1155,7 +1155,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1338,7 +1338,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2640,7 +2640,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2823,7 +2823,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3042,7 +3042,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3236,7 +3236,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs index c2056705668a0..c817fec41a93e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs @@ -273,6 +273,21 @@ public partial class NetworkManagementClient : ServiceClient public virtual IFirewallPolicyIdpsSignaturesFilterValuesOperations FirewallPolicyIdpsSignaturesFilterValues { get; private set; } + /// + /// Gets the IFirewallPolicyDraftsOperations. + /// + public virtual IFirewallPolicyDraftsOperations FirewallPolicyDrafts { get; private set; } + + /// + /// Gets the IFirewallPolicyDeploymentsOperations. + /// + public virtual IFirewallPolicyDeploymentsOperations FirewallPolicyDeployments { get; private set; } + + /// + /// Gets the IFirewallPolicyRuleCollectionGroupDraftsOperations. + /// + public virtual IFirewallPolicyRuleCollectionGroupDraftsOperations FirewallPolicyRuleCollectionGroupDrafts { get; private set; } + /// /// Gets the IIpAllocationsOperations. /// @@ -703,6 +718,11 @@ public partial class NetworkManagementClient : ServiceClient public virtual IExpressRouteConnectionsOperations ExpressRouteConnections { get; private set; } + /// + /// Gets the INetworkVirtualApplianceConnectionsOperations. + /// + public virtual INetworkVirtualApplianceConnectionsOperations NetworkVirtualApplianceConnections { get; private set; } + /// /// Gets the IVirtualHubBgpConnectionOperations. /// @@ -1013,6 +1033,9 @@ private void Initialize() FirewallPolicyIdpsSignatures = new FirewallPolicyIdpsSignaturesOperations(this); FirewallPolicyIdpsSignaturesOverrides = new FirewallPolicyIdpsSignaturesOverridesOperations(this); FirewallPolicyIdpsSignaturesFilterValues = new FirewallPolicyIdpsSignaturesFilterValuesOperations(this); + FirewallPolicyDrafts = new FirewallPolicyDraftsOperations(this); + FirewallPolicyDeployments = new FirewallPolicyDeploymentsOperations(this); + FirewallPolicyRuleCollectionGroupDrafts = new FirewallPolicyRuleCollectionGroupDraftsOperations(this); IpAllocations = new IpAllocationsOperations(this); IpGroups = new IpGroupsOperations(this); LoadBalancers = new LoadBalancersOperations(this); @@ -1099,6 +1122,7 @@ private void Initialize() VirtualHubRouteTableV2s = new VirtualHubRouteTableV2sOperations(this); ExpressRouteGateways = new ExpressRouteGatewaysOperations(this); ExpressRouteConnections = new ExpressRouteConnectionsOperations(this); + NetworkVirtualApplianceConnections = new NetworkVirtualApplianceConnectionsOperations(this); VirtualHubBgpConnection = new VirtualHubBgpConnectionOperations(this); VirtualHubBgpConnections = new VirtualHubBgpConnectionsOperations(this); VirtualHubIpConfiguration = new VirtualHubIpConfigurationOperations(this); @@ -1159,7 +1183,7 @@ private void Initialize() /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// /// /// The headers that will be added to request. @@ -1185,7 +1209,7 @@ private void Initialize() /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// /// /// The headers that will be added to request. @@ -1200,6 +1224,32 @@ private void Initialize() return await this.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Deletes the Bastion Shareable Links for all the tokens specified in the + /// request. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Bastion Host. + /// + /// + /// Post request for Delete Bastion Shareable Link By Token endpoint. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> DeleteBastionShareableLinkByTokenWithHttpMessagesAsync(string resourceGroupName, string bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationHeaderResponse _response = await BeginDeleteBastionShareableLinkByTokenWithHttpMessagesAsync(resourceGroupName, bastionHostName, bslTokenRequest, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Return the Bastion Shareable Links for all the VMs specified in the /// request. @@ -1211,7 +1261,7 @@ private void Initialize() /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// /// /// Headers that will be added to request. @@ -1252,7 +1302,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "bslRequest"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1482,7 +1532,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "sessionIds"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1685,7 +1735,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "this.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1875,7 +1925,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "this.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2086,7 +2136,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2311,7 +2361,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2537,7 +2587,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2762,7 +2812,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2969,7 +3019,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "virtualWANName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3158,7 +3208,7 @@ private void Initialize() /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// /// /// Headers that will be added to request. @@ -3199,7 +3249,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "bslRequest"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3367,7 +3417,7 @@ private void Initialize() /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// /// /// Headers that will be added to request. @@ -3405,7 +3455,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "bslRequest"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3544,6 +3594,207 @@ private void Initialize() return _result; } + /// + /// Deletes the Bastion Shareable Links for all the tokens specified in the + /// request. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Bastion Host. + /// + /// + /// Post request for Delete Bastion Shareable Link By Token endpoint. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginDeleteBastionShareableLinkByTokenWithHttpMessagesAsync(string resourceGroupName, string bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (bastionHostName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "bastionHostName"); + } + if (SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.SubscriptionId"); + } + if (bslTokenRequest == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "bslTokenRequest"); + } + string apiVersion = "2024-01-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("bastionHostName", bastionHostName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("bslTokenRequest", bslTokenRequest); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeleteBastionShareableLinkByToken", tracingParameters); + } + // Construct URL + var _baseUrl = BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinksByToken").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{bastionHostName}", System.Uri.EscapeDataString(bastionHostName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(bslTokenRequest != null) + { + _requestContent = SafeJsonConvert.SerializeObject(bslTokenRequest, SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Returns the list of currently active sessions on the Bastion. /// @@ -3588,7 +3839,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "this.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3793,7 +4044,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "vpnClientParams"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClientExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClientExtensions.cs index 2336f7a317a8b..171cab5a96a93 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClientExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClientExtensions.cs @@ -34,7 +34,7 @@ public static partial class NetworkManagementClientExtensions /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// public static IPage PutBastionShareableLink(this INetworkManagementClient operations, string resourceGroupName, string bastionHostName, BastionShareableLinkListRequest bslRequest) { @@ -54,7 +54,7 @@ public static IPage PutBastionShareableLink(this INetworkM /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// /// /// The cancellation token. @@ -81,7 +81,7 @@ public static IPage PutBastionShareableLink(this INetworkM /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// public static void DeleteBastionShareableLink(this INetworkManagementClient operations, string resourceGroupName, string bastionHostName, BastionShareableLinkListRequest bslRequest) { @@ -102,7 +102,7 @@ public static void DeleteBastionShareableLink(this INetworkManagementClient oper /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// /// /// The cancellation token. @@ -112,6 +112,54 @@ public static void DeleteBastionShareableLink(this INetworkManagementClient oper (await operations.DeleteBastionShareableLinkWithHttpMessagesAsync(resourceGroupName, bastionHostName, bslRequest, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Deletes the Bastion Shareable Links for all the tokens specified in the + /// request. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Bastion Host. + /// + /// + /// Post request for Delete Bastion Shareable Link By Token endpoint. + /// + public static DeleteBastionShareableLinkByTokenHeaders DeleteBastionShareableLinkByToken(this INetworkManagementClient operations, string resourceGroupName, string bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest) + { + return operations.DeleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostName, bslTokenRequest).GetAwaiter().GetResult(); + } + + /// + /// Deletes the Bastion Shareable Links for all the tokens specified in the + /// request. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Bastion Host. + /// + /// + /// Post request for Delete Bastion Shareable Link By Token endpoint. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteBastionShareableLinkByTokenAsync(this INetworkManagementClient operations, string resourceGroupName, string bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteBastionShareableLinkByTokenWithHttpMessagesAsync(resourceGroupName, bastionHostName, bslTokenRequest, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + /// /// Return the Bastion Shareable Links for all the VMs specified in the /// request. @@ -126,7 +174,7 @@ public static void DeleteBastionShareableLink(this INetworkManagementClient oper /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// public static IPage GetBastionShareableLink(this INetworkManagementClient operations, string resourceGroupName, string bastionHostName, BastionShareableLinkListRequest bslRequest) { @@ -147,7 +195,7 @@ public static IPage GetBastionShareableLink(this INetworkM /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// /// /// The cancellation token. @@ -651,7 +699,7 @@ public static VpnProfileResponse Generatevirtualwanvpnserverconfigurationvpnprof /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// public static IPage BeginPutBastionShareableLink(this INetworkManagementClient operations, string resourceGroupName, string bastionHostName, BastionShareableLinkListRequest bslRequest) { @@ -671,7 +719,7 @@ public static IPage BeginPutBastionShareableLink(this INet /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// /// /// The cancellation token. @@ -698,7 +746,7 @@ public static IPage BeginPutBastionShareableLink(this INet /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// public static void BeginDeleteBastionShareableLink(this INetworkManagementClient operations, string resourceGroupName, string bastionHostName, BastionShareableLinkListRequest bslRequest) { @@ -719,7 +767,7 @@ public static void BeginDeleteBastionShareableLink(this INetworkManagementClient /// The name of the Bastion Host. /// /// - /// Post request for all the Bastion Shareable Link endpoints. + /// Post request for Create/Delete/Get Bastion Shareable Link endpoints. /// /// /// The cancellation token. @@ -729,6 +777,54 @@ public static void BeginDeleteBastionShareableLink(this INetworkManagementClient (await operations.BeginDeleteBastionShareableLinkWithHttpMessagesAsync(resourceGroupName, bastionHostName, bslRequest, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Deletes the Bastion Shareable Links for all the tokens specified in the + /// request. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Bastion Host. + /// + /// + /// Post request for Delete Bastion Shareable Link By Token endpoint. + /// + public static DeleteBastionShareableLinkByTokenHeaders BeginDeleteBastionShareableLinkByToken(this INetworkManagementClient operations, string resourceGroupName, string bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest) + { + return operations.BeginDeleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostName, bslTokenRequest).GetAwaiter().GetResult(); + } + + /// + /// Deletes the Bastion Shareable Links for all the tokens specified in the + /// request. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Bastion Host. + /// + /// + /// Post request for Delete Bastion Shareable Link By Token endpoint. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteBastionShareableLinkByTokenAsync(this INetworkManagementClient operations, string resourceGroupName, string bastionHostName, BastionShareableLinkTokenListRequest bslTokenRequest, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginDeleteBastionShareableLinkByTokenWithHttpMessagesAsync(resourceGroupName, bastionHostName, bslTokenRequest, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + /// /// Returns the list of currently active sessions on the Bastion. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagerCommitsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagerCommitsOperations.cs index fcb4d39617d25..adb1c11cdb530 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagerCommitsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagerCommitsOperations.cs @@ -130,7 +130,7 @@ internal NetworkManagerCommitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "networkManagerName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagerDeploymentStatusOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagerDeploymentStatusOperations.cs index 0904b17c64c87..053dd83a4d130 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagerDeploymentStatusOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagerDeploymentStatusOperations.cs @@ -113,7 +113,7 @@ internal NetworkManagerDeploymentStatusOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagersOperations.cs index 9c8222d293245..a846d33ccf2b5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagersOperations.cs @@ -94,7 +94,7 @@ internal NetworkManagersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "networkManagerName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -299,7 +299,7 @@ internal NetworkManagersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "networkManagerName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -552,7 +552,7 @@ internal NetworkManagersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "networkManagerName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -757,7 +757,7 @@ internal NetworkManagersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -968,7 +968,7 @@ internal NetworkManagersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1172,7 +1172,7 @@ internal NetworkManagersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "networkManagerName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkProfilesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkProfilesOperations.cs index 0d93bda5de593..761fac5e702c6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkProfilesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkProfilesOperations.cs @@ -119,7 +119,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -325,7 +325,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -551,7 +551,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -738,7 +738,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -921,7 +921,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1110,7 +1110,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkSecurityGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkSecurityGroupsOperations.cs index e7ef8b352b960..2c0d5209085f9 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkSecurityGroupsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkSecurityGroupsOperations.cs @@ -119,7 +119,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -352,7 +352,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -539,7 +539,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -722,7 +722,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -911,7 +911,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1096,7 +1096,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualApplianceConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualApplianceConnectionsOperations.cs new file mode 100644 index 0000000000000..dce334bea5b49 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualApplianceConnectionsOperations.cs @@ -0,0 +1,1134 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// NetworkVirtualApplianceConnectionsOperations operations. + /// + internal partial class NetworkVirtualApplianceConnectionsOperations : IServiceOperations, INetworkVirtualApplianceConnectionsOperations + { + /// + /// Initializes a new instance of the NetworkVirtualApplianceConnectionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal NetworkVirtualApplianceConnectionsOperations(NetworkManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the NetworkManagementClient + /// + public NetworkManagementClient Client { get; private set; } + + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else + /// updates the existing NVA connection' + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnection networkVirtualApplianceConnectionParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, connectionName, networkVirtualApplianceConnectionParameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieves the details of specified NVA connection. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (networkVirtualApplianceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkVirtualApplianceName"); + } + if (connectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); + } + string apiVersion = "2024-01-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("networkVirtualApplianceName", networkVirtualApplianceName); + tracingParameters.Add("connectionName", connectionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{networkVirtualApplianceName}", System.Uri.EscapeDataString(networkVirtualApplianceName)); + _url = _url.Replace("{connectionName}", System.Uri.EscapeDataString(connectionName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a NVA connection. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationHeaderResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, connectionName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (networkVirtualApplianceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkVirtualApplianceName"); + } + if (networkVirtualApplianceName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(networkVirtualApplianceName, "^[A-Za-z0-9_]+")) + { + throw new ValidationException(ValidationRules.Pattern, "networkVirtualApplianceName", "^[A-Za-z0-9_]+"); + } + } + string apiVersion = "2024-01-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("networkVirtualApplianceName", networkVirtualApplianceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{networkVirtualApplianceName}", System.Uri.EscapeDataString(networkVirtualApplianceName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else + /// updates the existing NVA connection' + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnection networkVirtualApplianceConnectionParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (networkVirtualApplianceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkVirtualApplianceName"); + } + if (networkVirtualApplianceName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(networkVirtualApplianceName, "^[A-Za-z0-9_]+")) + { + throw new ValidationException(ValidationRules.Pattern, "networkVirtualApplianceName", "^[A-Za-z0-9_]+"); + } + } + if (connectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); + } + if (connectionName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(connectionName, "^[A-Za-z0-9_]+")) + { + throw new ValidationException(ValidationRules.Pattern, "connectionName", "^[A-Za-z0-9_]+"); + } + } + if (networkVirtualApplianceConnectionParameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkVirtualApplianceConnectionParameters"); + } + if (networkVirtualApplianceConnectionParameters != null) + { + networkVirtualApplianceConnectionParameters.Validate(); + } + string apiVersion = "2024-01-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("networkVirtualApplianceName", networkVirtualApplianceName); + tracingParameters.Add("connectionName", connectionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("networkVirtualApplianceConnectionParameters", networkVirtualApplianceConnectionParameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{networkVirtualApplianceName}", System.Uri.EscapeDataString(networkVirtualApplianceName)); + _url = _url.Replace("{connectionName}", System.Uri.EscapeDataString(connectionName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(networkVirtualApplianceConnectionParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(networkVirtualApplianceConnectionParameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a NVA connection. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (networkVirtualApplianceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkVirtualApplianceName"); + } + if (connectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); + } + string apiVersion = "2024-01-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("networkVirtualApplianceName", networkVirtualApplianceName); + tracingParameters.Add("connectionName", connectionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{networkVirtualApplianceName}", System.Uri.EscapeDataString(networkVirtualApplianceName)); + _url = _url.Replace("{connectionName}", System.Uri.EscapeDataString(connectionName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualApplianceConnectionsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualApplianceConnectionsOperationsExtensions.cs new file mode 100644 index 0000000000000..a35f0a634fd24 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualApplianceConnectionsOperationsExtensions.cs @@ -0,0 +1,345 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for NetworkVirtualApplianceConnectionsOperations. + /// + public static partial class NetworkVirtualApplianceConnectionsOperationsExtensions + { + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else + /// updates the existing NVA connection' + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// + public static NetworkVirtualApplianceConnection CreateOrUpdate(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnection networkVirtualApplianceConnectionParameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, connectionName, networkVirtualApplianceConnectionParameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else + /// updates the existing NVA connection' + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnection networkVirtualApplianceConnectionParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, connectionName, networkVirtualApplianceConnectionParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves the details of specified NVA connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + public static NetworkVirtualApplianceConnection Get(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName, string connectionName) + { + return operations.GetAsync(resourceGroupName, networkVirtualApplianceName, connectionName).GetAwaiter().GetResult(); + } + + /// + /// Retrieves the details of specified NVA connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, connectionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a NVA connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + public static NetworkVirtualApplianceConnectionsDeleteHeaders Delete(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName, string connectionName) + { + return operations.DeleteAsync(resourceGroupName, networkVirtualApplianceName, connectionName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a NVA connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, connectionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + public static IPage List(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName) + { + return operations.ListAsync(resourceGroupName, networkVirtualApplianceName).GetAwaiter().GetResult(); + } + + /// + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else + /// updates the existing NVA connection' + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// + public static NetworkVirtualApplianceConnection BeginCreateOrUpdate(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnection networkVirtualApplianceConnectionParameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, connectionName, networkVirtualApplianceConnectionParameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else + /// updates the existing NVA connection' + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnection networkVirtualApplianceConnectionParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, connectionName, networkVirtualApplianceConnectionParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a NVA connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + public static NetworkVirtualApplianceConnectionsDeleteHeaders BeginDelete(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName, string connectionName) + { + return operations.BeginDeleteAsync(resourceGroupName, networkVirtualApplianceName, connectionName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a NVA connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Network Virtual Appliance. + /// + /// + /// The name of the NVA connection. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this INetworkVirtualApplianceConnectionsOperations operations, string resourceGroupName, string networkVirtualApplianceName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, connectionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this INetworkVirtualApplianceConnectionsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this INetworkVirtualApplianceConnectionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperations.cs index 183da10114cdc..a54a36b700d2e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperations.cs @@ -65,10 +65,10 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationHeaderResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -119,7 +119,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -325,7 +325,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -500,13 +500,40 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) /// /// The cancellation token. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualAppliance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualAppliance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Restarts one or more VMs belonging to the specified Network Virtual + /// Appliance. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of Network Virtual Appliance. + /// + /// + /// Specifies a list of virtual machine instance IDs from the Network Virtual + /// Appliance VM instances. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> RestartWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default(NetworkVirtualApplianceInstanceIds), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRestartWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Lists all Network Virtual Appliances in a resource group. /// @@ -544,7 +571,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -722,7 +749,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -895,7 +922,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -909,7 +936,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1027,13 +1054,26 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationHeaderResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -1074,7 +1114,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualAppliance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualAppliance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1096,7 +1136,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1221,7 +1261,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1264,6 +1304,238 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client) throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Restarts one or more VMs belonging to the specified Network Virtual + /// Appliance. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of Network Virtual Appliance. + /// + /// + /// Specifies a list of virtual machine instance IDs from the Network Virtual + /// Appliance VM instances. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginRestartWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default(NetworkVirtualApplianceInstanceIds), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (networkVirtualApplianceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkVirtualApplianceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2024-01-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("networkVirtualApplianceName", networkVirtualApplianceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("networkVirtualApplianceInstanceIds", networkVirtualApplianceInstanceIds); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginRestart", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/restart").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{networkVirtualApplianceName}", System.Uri.EscapeDataString(networkVirtualApplianceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(networkVirtualApplianceInstanceIds != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(networkVirtualApplianceInstanceIds, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperationsExtensions.cs index 46bfc2243902f..ce3bf36bd6b85 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperationsExtensions.cs @@ -33,9 +33,9 @@ public static partial class NetworkVirtualAppliancesOperationsExtensions /// /// The name of Network Virtual Appliance. /// - public static void Delete(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName) + public static NetworkVirtualAppliancesDeleteHeaders Delete(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName) { - operations.DeleteAsync(resourceGroupName, networkVirtualApplianceName).GetAwaiter().GetResult(); + return operations.DeleteAsync(resourceGroupName, networkVirtualApplianceName).GetAwaiter().GetResult(); } /// @@ -53,9 +53,12 @@ public static void Delete(this INetworkVirtualAppliancesOperations operations, s /// /// The cancellation token. /// - public static async Task DeleteAsync(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } } /// @@ -196,6 +199,56 @@ public static NetworkVirtualAppliance CreateOrUpdate(this INetworkVirtualApplian } } + /// + /// Restarts one or more VMs belonging to the specified Network Virtual + /// Appliance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of Network Virtual Appliance. + /// + /// + /// Specifies a list of virtual machine instance IDs from the Network Virtual + /// Appliance VM instances. + /// + public static NetworkVirtualApplianceInstanceIds Restart(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default(NetworkVirtualApplianceInstanceIds)) + { + return operations.RestartAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds).GetAwaiter().GetResult(); + } + + /// + /// Restarts one or more VMs belonging to the specified Network Virtual + /// Appliance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of Network Virtual Appliance. + /// + /// + /// Specifies a list of virtual machine instance IDs from the Network Virtual + /// Appliance VM instances. + /// + /// + /// The cancellation token. + /// + public static async Task RestartAsync(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default(NetworkVirtualApplianceInstanceIds), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.RestartWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Lists all Network Virtual Appliances in a resource group. /// @@ -270,9 +323,9 @@ public static IPage List(this INetworkVirtualAppliances /// /// The name of Network Virtual Appliance. /// - public static void BeginDelete(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName) + public static NetworkVirtualAppliancesDeleteHeaders BeginDelete(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName) { - operations.BeginDeleteAsync(resourceGroupName, networkVirtualApplianceName).GetAwaiter().GetResult(); + return operations.BeginDeleteAsync(resourceGroupName, networkVirtualApplianceName).GetAwaiter().GetResult(); } /// @@ -290,9 +343,12 @@ public static void BeginDelete(this INetworkVirtualAppliancesOperations operatio /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } } /// @@ -341,6 +397,56 @@ public static NetworkVirtualAppliance BeginCreateOrUpdate(this INetworkVirtualAp } } + /// + /// Restarts one or more VMs belonging to the specified Network Virtual + /// Appliance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of Network Virtual Appliance. + /// + /// + /// Specifies a list of virtual machine instance IDs from the Network Virtual + /// Appliance VM instances. + /// + public static NetworkVirtualApplianceInstanceIds BeginRestart(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default(NetworkVirtualApplianceInstanceIds)) + { + return operations.BeginRestartAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds).GetAwaiter().GetResult(); + } + + /// + /// Restarts one or more VMs belonging to the specified Network Virtual + /// Appliance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of Network Virtual Appliance. + /// + /// + /// Specifies a list of virtual machine instance IDs from the Network Virtual + /// Appliance VM instances. + /// + /// + /// The cancellation token. + /// + public static async Task BeginRestartAsync(this INetworkVirtualAppliancesOperations operations, string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default(NetworkVirtualApplianceInstanceIds), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginRestartWithHttpMessagesAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Lists all Network Virtual Appliances in a resource group. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperations.cs index 38141f145446f..aa2e3c91df28c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperations.cs @@ -101,7 +101,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -315,7 +315,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -533,7 +533,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -722,7 +722,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -895,7 +895,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1087,7 +1087,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1571,7 +1571,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1754,7 +1754,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1979,7 +1979,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2204,7 +2204,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2429,7 +2429,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2654,7 +2654,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2880,7 +2880,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3107,7 +3107,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3334,7 +3334,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3561,7 +3561,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3784,7 +3784,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4015,7 +4015,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Operations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Operations.cs index 4b4c184f5845a..a0cc40eb4260d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Operations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Operations.cs @@ -70,7 +70,7 @@ internal Operations(NetworkManagementClient client) /// public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperations.cs index 2cca2652465a9..7fa764d003d4f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperations.cs @@ -94,7 +94,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -354,7 +354,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -532,7 +532,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -854,7 +854,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "p2SVpnGatewayParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1080,7 +1080,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "p2SVpnGatewayParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1278,7 +1278,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1454,7 +1454,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1657,7 +1657,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1859,7 +1859,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2061,7 +2061,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "request"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2267,7 +2267,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "request"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PacketCapturesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PacketCapturesOperations.cs index 4e2c790ee7d18..2c00f6a9490aa 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PacketCapturesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PacketCapturesOperations.cs @@ -129,7 +129,7 @@ internal PacketCapturesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -395,7 +395,7 @@ internal PacketCapturesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -602,7 +602,7 @@ internal PacketCapturesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -804,7 +804,7 @@ internal PacketCapturesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -981,7 +981,7 @@ internal PacketCapturesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1161,7 +1161,7 @@ internal PacketCapturesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PeerExpressRouteCircuitConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PeerExpressRouteCircuitConnectionsOperations.cs index 91e93f304794e..cd48d0f347cd2 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PeerExpressRouteCircuitConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PeerExpressRouteCircuitConnectionsOperations.cs @@ -109,7 +109,7 @@ internal PeerExpressRouteCircuitConnectionsOperations(NetworkManagementClient cl { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -315,7 +315,7 @@ internal PeerExpressRouteCircuitConnectionsOperations(NetworkManagementClient cl { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateDnsZoneGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateDnsZoneGroupsOperations.cs index d3514ac766cb5..2df7cad9e54b3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateDnsZoneGroupsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateDnsZoneGroupsOperations.cs @@ -127,7 +127,7 @@ internal PrivateDnsZoneGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -353,7 +353,7 @@ internal PrivateDnsZoneGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -546,7 +546,7 @@ internal PrivateDnsZoneGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -740,7 +740,7 @@ internal PrivateDnsZoneGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateEndpointsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateEndpointsOperations.cs index 3ea4ce6dbce1e..eabc876c8e818 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateEndpointsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateEndpointsOperations.cs @@ -119,7 +119,7 @@ internal PrivateEndpointsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -331,7 +331,7 @@ internal PrivateEndpointsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -504,7 +504,7 @@ internal PrivateEndpointsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -686,7 +686,7 @@ internal PrivateEndpointsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -864,7 +864,7 @@ internal PrivateEndpointsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperations.cs index 6423246fcf823..7e8bf3d8d571c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperations.cs @@ -119,7 +119,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -331,7 +331,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -504,7 +504,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -700,7 +700,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -911,7 +911,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1135,7 +1135,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1366,7 +1366,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1559,7 +1559,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1750,7 +1750,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1928,7 +1928,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2147,7 +2147,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2320,7 +2320,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2527,7 +2527,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIpAddressesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperations.cs similarity index 99% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIpAddressesOperations.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperations.cs index ddb3aa5905622..84bd1c10ce9f0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIpAddressesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperations.cs @@ -94,7 +94,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -310,7 +310,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -541,7 +541,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -773,7 +773,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1004,7 +1004,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1191,7 +1191,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1374,7 +1374,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2240,7 +2240,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2436,7 +2436,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2655,7 +2655,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIpAddressesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperationsExtensions.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIpAddressesOperationsExtensions.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperationsExtensions.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPPrefixesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPPrefixesOperations.cs index 77958f70d72ae..1b58b3dcd3df6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPPrefixesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPPrefixesOperations.cs @@ -119,7 +119,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -720,7 +720,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -909,7 +909,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1092,7 +1092,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ResourceNavigationLinksOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ResourceNavigationLinksOperations.cs index f8ffc12fe379a..5992d57fa42cb 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ResourceNavigationLinksOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ResourceNavigationLinksOperations.cs @@ -101,7 +101,7 @@ internal ResourceNavigationLinksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFilterRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFilterRulesOperations.cs index 817a8c8ef337f..1d6b289f5c95d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFilterRulesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFilterRulesOperations.cs @@ -126,7 +126,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -548,7 +548,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -744,7 +744,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFiltersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFiltersOperations.cs index b381f13df2db0..eb27be7ef0805 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFiltersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFiltersOperations.cs @@ -119,7 +119,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -544,7 +544,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -722,7 +722,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -909,7 +909,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1092,7 +1092,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteMapsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteMapsOperations.cs index 54d6012d018ce..ca5ac397faa64 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteMapsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteMapsOperations.cs @@ -101,7 +101,7 @@ internal RouteMapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routeMapName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal RouteMapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -558,7 +558,7 @@ internal RouteMapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routeMapParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -783,7 +783,7 @@ internal RouteMapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routeMapName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteTablesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteTablesOperations.cs index 6fca728c87ecc..2e644b8ae0333 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteTablesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteTablesOperations.cs @@ -119,7 +119,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -544,7 +544,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -722,7 +722,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -909,7 +909,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1092,7 +1092,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutesOperations.cs index 38c0765c09ae4..5877656636618 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutesOperations.cs @@ -126,7 +126,7 @@ internal RoutesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal RoutesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -548,7 +548,7 @@ internal RoutesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -744,7 +744,7 @@ internal RoutesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutingIntentOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutingIntentOperations.cs index 6105762938409..720eecbe4afcf 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutingIntentOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutingIntentOperations.cs @@ -130,7 +130,7 @@ internal RoutingIntentOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routingIntentName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -352,7 +352,7 @@ internal RoutingIntentOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -561,7 +561,7 @@ internal RoutingIntentOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routingIntentParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -786,7 +786,7 @@ internal RoutingIntentOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routingIntentName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ScopeConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ScopeConnectionsOperations.cs index b6ccb929e8a38..b43f73abc8130 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ScopeConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ScopeConnectionsOperations.cs @@ -108,7 +108,7 @@ internal ScopeConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "scopeConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -336,7 +336,7 @@ internal ScopeConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "scopeConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -536,7 +536,7 @@ internal ScopeConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "scopeConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -732,7 +732,7 @@ internal ScopeConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs index cceaf00f77005..0448e98f740ec 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs @@ -20,168 +20,162 @@ public static IEnumerable> ApiInfo_NetworkManageme return new Tuple[] { new Tuple("Compute", "NetworkInterfaces", "2018-10-01"), - new Tuple("Compute", "NetworkInterfaces", "2022-09-01"), + new Tuple("Compute", "NetworkInterfaces", "2024-01-01"), new Tuple("Compute", "PublicIPAddresses", "2018-10-01"), - new Tuple("Compute", "PublicIPAddresses", "2022-09-01"), - new Tuple("Compute", "VipSwap", "2022-09-01"), - new Tuple("Management", "ManagementGroupNetworkManagerConnections", "2022-09-01"), - new Tuple("Network", "AdminRuleCollections", "2022-09-01"), - new Tuple("Network", "AdminRules", "2022-09-01"), - new Tuple("Network", "ApplicationGatewayPrivateEndpointConnections", "2022-09-01"), - new Tuple("Network", "ApplicationGatewayPrivateLinkResources", "2022-09-01"), - new Tuple("Network", "ApplicationGatewayWafDynamicManifests", "2022-09-01"), - new Tuple("Network", "ApplicationGatewayWafDynamicManifestsDefault", "2022-09-01"), - new Tuple("Network", "ApplicationGateways", "2022-09-01"), - new Tuple("Network", "ApplicationSecurityGroups", "2022-09-01"), - new Tuple("Network", "AvailableDelegations", "2022-09-01"), - new Tuple("Network", "AvailableEndpointServices", "2022-09-01"), - new Tuple("Network", "AvailablePrivateEndpointTypes", "2022-09-01"), - new Tuple("Network", "AvailableResourceGroupDelegations", "2022-09-01"), - new Tuple("Network", "AvailableServiceAliases", "2022-09-01"), - new Tuple("Network", "AzureFirewallFqdnTags", "2022-09-01"), - new Tuple("Network", "AzureFirewalls", "2022-09-01"), - new Tuple("Network", "BastionHosts", "2022-09-01"), - new Tuple("Network", "BgpServiceCommunities", "2022-09-01"), - new Tuple("Network", "CheckDnsNameAvailability", "2022-09-01"), - new Tuple("Network", "ConfigurationPolicyGroups", "2022-09-01"), - new Tuple("Network", "ConnectionMonitors", "2022-09-01"), - new Tuple("Network", "ConnectivityConfigurations", "2022-09-01"), - new Tuple("Network", "CustomIPPrefixes", "2022-09-01"), - new Tuple("Network", "DdosCustomPolicies", "2022-09-01"), - new Tuple("Network", "DdosProtectionPlans", "2022-09-01"), - new Tuple("Network", "DefaultSecurityRules", "2022-09-01"), - new Tuple("Network", "DeleteBastionShareableLink", "2022-09-01"), - new Tuple("Network", "DisconnectActiveSessions", "2022-09-01"), - new Tuple("Network", "DscpConfiguration", "2022-09-01"), - new Tuple("Network", "ExpressRouteCircuitAuthorizations", "2022-09-01"), - new Tuple("Network", "ExpressRouteCircuitConnections", "2022-09-01"), - new Tuple("Network", "ExpressRouteCircuitPeerings", "2022-09-01"), - new Tuple("Network", "ExpressRouteCircuits", "2022-09-01"), - new Tuple("Network", "ExpressRouteConnections", "2022-09-01"), - new Tuple("Network", "ExpressRouteCrossConnectionPeerings", "2022-09-01"), - new Tuple("Network", "ExpressRouteCrossConnections", "2022-09-01"), - new Tuple("Network", "ExpressRouteGateways", "2022-09-01"), - new Tuple("Network", "ExpressRouteLinks", "2022-09-01"), - new Tuple("Network", "ExpressRoutePortAuthorizations", "2022-09-01"), - new Tuple("Network", "ExpressRoutePorts", "2022-09-01"), - new Tuple("Network", "ExpressRoutePortsLocations", "2022-09-01"), - new Tuple("Network", "ExpressRouteProviderPort", "2022-09-01"), - new Tuple("Network", "ExpressRouteProviderPortsLocation", "2022-09-01"), - new Tuple("Network", "ExpressRouteServiceProviders", "2022-09-01"), - new Tuple("Network", "FirewallPolicies", "2022-09-01"), - new Tuple("Network", "FirewallPolicyIdpsSignatures", "2022-09-01"), - new Tuple("Network", "FirewallPolicyIdpsSignaturesFilterValues", "2022-09-01"), - new Tuple("Network", "FirewallPolicyIdpsSignaturesOverrides", "2022-09-01"), - new Tuple("Network", "FirewallPolicyRuleCollectionGroups", "2022-09-01"), - new Tuple("Network", "FlowLogs", "2022-09-01"), - new Tuple("Network", "GetActiveSessions", "2022-09-01"), - new Tuple("Network", "GetBastionShareableLink", "2022-09-01"), - new Tuple("Network", "HubRouteTables", "2022-09-01"), - new Tuple("Network", "HubVirtualNetworkConnections", "2022-09-01"), - new Tuple("Network", "InboundNatRules", "2022-09-01"), - new Tuple("Network", "InboundSecurityRule", "2022-09-01"), - new Tuple("Network", "IpAllocations", "2022-09-01"), - new Tuple("Network", "IpGroups", "2022-09-01"), - new Tuple("Network", "ListActiveConnectivityConfigurations", "2022-09-01"), - new Tuple("Network", "ListActiveSecurityAdminRules", "2022-09-01"), - new Tuple("Network", "ListNetworkManagerEffectiveConnectivityConfigurations", "2022-09-01"), - new Tuple("Network", "ListNetworkManagerEffectiveSecurityAdminRules", "2022-09-01"), - new Tuple("Network", "LoadBalancerBackendAddressPools", "2022-09-01"), - new Tuple("Network", "LoadBalancerFrontendIPConfigurations", "2022-09-01"), - new Tuple("Network", "LoadBalancerLoadBalancingRules", "2022-09-01"), - new Tuple("Network", "LoadBalancerNetworkInterfaces", "2022-09-01"), - new Tuple("Network", "LoadBalancerOutboundRules", "2022-09-01"), - new Tuple("Network", "LoadBalancerProbes", "2022-09-01"), - new Tuple("Network", "LoadBalancers", "2022-09-01"), - new Tuple("Network", "LocalNetworkGateways", "2022-09-01"), - new Tuple("Network", "NatGateways", "2022-09-01"), - new Tuple("Network", "NatRules", "2022-09-01"), - new Tuple("Network", "NetworkGroups", "2022-09-01"), - new Tuple("Network", "NetworkInterfaceIPConfigurations", "2022-09-01"), - new Tuple("Network", "NetworkInterfaceLoadBalancers", "2022-09-01"), - new Tuple("Network", "NetworkInterfaceTapConfigurations", "2022-09-01"), - new Tuple("Network", "NetworkInterfaces", "2022-09-01"), - new Tuple("Network", "NetworkManagerCommits", "2022-09-01"), - new Tuple("Network", "NetworkManagerDeploymentStatus", "2022-09-01"), - new Tuple("Network", "NetworkManagers", "2022-09-01"), - new Tuple("Network", "NetworkProfiles", "2022-09-01"), - new Tuple("Network", "NetworkSecurityGroups", "2022-09-01"), - new Tuple("Network", "NetworkVirtualAppliances", "2022-09-01"), - new Tuple("Network", "NetworkWatchers", "2022-09-01"), - new Tuple("Network", "Operations", "2022-09-01"), - new Tuple("Network", "P2SVpnGateways", "2022-09-01"), - new Tuple("Network", "P2sVpnGateways", "2022-09-01"), - new Tuple("Network", "PacketCaptures", "2022-09-01"), - new Tuple("Network", "PeerExpressRouteCircuitConnections", "2022-09-01"), - new Tuple("Network", "PrivateDnsZoneGroups", "2022-09-01"), - new Tuple("Network", "PrivateEndpoints", "2022-09-01"), - new Tuple("Network", "PrivateLinkServices", "2022-09-01"), - new Tuple("Network", "PublicIPAddresses", "2022-09-01"), - new Tuple("Network", "PublicIPPrefixes", "2022-09-01"), - new Tuple("Network", "PutBastionShareableLink", "2022-09-01"), - new Tuple("Network", "ResourceNavigationLinks", "2022-09-01"), - new Tuple("Network", "RouteFilterRules", "2022-09-01"), - new Tuple("Network", "RouteFilters", "2022-09-01"), - new Tuple("Network", "RouteMaps", "2022-09-01"), - new Tuple("Network", "RouteTables", "2022-09-01"), - new Tuple("Network", "Routes", "2022-09-01"), - new Tuple("Network", "RoutingIntent", "2022-09-01"), - new Tuple("Network", "ScopeConnections", "2022-09-01"), - new Tuple("Network", "SecurityAdminConfigurations", "2022-09-01"), - new Tuple("Network", "SecurityPartnerProviders", "2022-09-01"), - new Tuple("Network", "SecurityRules", "2022-09-01"), - new Tuple("Network", "ServiceAssociationLinks", "2022-09-01"), - new Tuple("Network", "ServiceEndpointPolicies", "2022-09-01"), - new Tuple("Network", "ServiceEndpointPolicyDefinitions", "2022-09-01"), - new Tuple("Network", "ServiceTagInformation", "2022-09-01"), - new Tuple("Network", "ServiceTags", "2022-09-01"), - new Tuple("Network", "StaticMembers", "2022-09-01"), - new Tuple("Network", "Subnets", "2022-09-01"), - new Tuple("Network", "SubscriptionNetworkManagerConnections", "2022-09-01"), - new Tuple("Network", "SupportedSecurityProviders", "2022-09-01"), - new Tuple("Network", "Usages", "2022-09-01"), - new Tuple("Network", "VirtualApplianceSites", "2022-09-01"), - new Tuple("Network", "VirtualApplianceSkus", "2022-09-01"), - new Tuple("Network", "VirtualHubBgpConnection", "2022-09-01"), - new Tuple("Network", "VirtualHubBgpConnections", "2022-09-01"), - new Tuple("Network", "VirtualHubIpConfiguration", "2022-09-01"), - new Tuple("Network", "VirtualHubRouteTableV2s", "2022-09-01"), - new Tuple("Network", "VirtualHubs", "2022-09-01"), - new Tuple("Network", "VirtualNetworkGatewayConnections", "2022-09-01"), - new Tuple("Network", "VirtualNetworkGatewayNatRules", "2022-09-01"), - new Tuple("Network", "VirtualNetworkGateways", "2022-09-01"), - new Tuple("Network", "VirtualNetworkPeerings", "2022-09-01"), - new Tuple("Network", "VirtualNetworkTaps", "2022-09-01"), - new Tuple("Network", "VirtualNetworks", "2022-09-01"), - new Tuple("Network", "VirtualRouterPeerings", "2022-09-01"), - new Tuple("Network", "VirtualRouters", "2022-09-01"), - new Tuple("Network", "VirtualWans", "2022-09-01"), - new Tuple("Network", "VpnConnections", "2022-09-01"), - new Tuple("Network", "VpnGateways", "2022-09-01"), - new Tuple("Network", "VpnLinkConnections", "2022-09-01"), - new Tuple("Network", "VpnServerConfigurations", "2022-09-01"), - new Tuple("Network", "VpnServerConfigurationsAssociatedWithVirtualWan", "2022-09-01"), - new Tuple("Network", "VpnSiteLinkConnections", "2022-09-01"), - new Tuple("Network", "VpnSiteLinks", "2022-09-01"), - new Tuple("Network", "VpnSites", "2022-09-01"), - new Tuple("Network", "VpnSitesConfiguration", "2022-09-01"), - new Tuple("Network", "WebApplicationFirewallPolicies", "2022-09-01"), - new Tuple("Network", "WebCategories", "2022-09-01"), - new Tuple("Network", "configurationPolicyGroups", "2022-09-01"), - new Tuple("Network", "generatevirtualwanvpnserverconfigurationvpnprofile", "2022-09-01"), + new Tuple("Compute", "PublicIPAddresses", "2024-01-01"), + new Tuple("Compute", "VipSwap", "2024-01-01"), + new Tuple("Management", "ManagementGroupNetworkManagerConnections", "2024-01-01"), + new Tuple("Network", "AdminRuleCollections", "2024-01-01"), + new Tuple("Network", "AdminRules", "2024-01-01"), + new Tuple("Network", "ApplicationGatewayPrivateEndpointConnections", "2024-01-01"), + new Tuple("Network", "ApplicationGatewayPrivateLinkResources", "2024-01-01"), + new Tuple("Network", "ApplicationGatewayWafDynamicManifests", "2024-01-01"), + new Tuple("Network", "ApplicationGatewayWafDynamicManifestsDefault", "2024-01-01"), + new Tuple("Network", "ApplicationGateways", "2024-01-01"), + new Tuple("Network", "ApplicationSecurityGroups", "2024-01-01"), + new Tuple("Network", "AvailableDelegations", "2024-01-01"), + new Tuple("Network", "AvailableEndpointServices", "2024-01-01"), + new Tuple("Network", "AvailablePrivateEndpointTypes", "2024-01-01"), + new Tuple("Network", "AvailableResourceGroupDelegations", "2024-01-01"), + new Tuple("Network", "AvailableServiceAliases", "2024-01-01"), + new Tuple("Network", "AzureFirewallFqdnTags", "2024-01-01"), + new Tuple("Network", "AzureFirewalls", "2024-01-01"), + new Tuple("Network", "BastionHosts", "2024-01-01"), + new Tuple("Network", "BgpServiceCommunities", "2024-01-01"), + new Tuple("Network", "CheckDnsNameAvailability", "2024-01-01"), + new Tuple("Network", "ConfigurationPolicyGroups", "2024-01-01"), + new Tuple("Network", "ConnectionMonitors", "2024-01-01"), + new Tuple("Network", "ConnectivityConfigurations", "2024-01-01"), + new Tuple("Network", "CustomIPPrefixes", "2024-01-01"), + new Tuple("Network", "DdosCustomPolicies", "2024-01-01"), + new Tuple("Network", "DdosProtectionPlans", "2024-01-01"), + new Tuple("Network", "DefaultSecurityRules", "2024-01-01"), + new Tuple("Network", "DeleteBastionShareableLink", "2024-01-01"), + new Tuple("Network", "DeleteBastionShareableLinkByToken", "2024-01-01"), + new Tuple("Network", "DisconnectActiveSessions", "2024-01-01"), + new Tuple("Network", "DscpConfiguration", "2024-01-01"), + new Tuple("Network", "ExpressRouteCircuitAuthorizations", "2024-01-01"), + new Tuple("Network", "ExpressRouteCircuitConnections", "2024-01-01"), + new Tuple("Network", "ExpressRouteCircuitPeerings", "2024-01-01"), + new Tuple("Network", "ExpressRouteCircuits", "2024-01-01"), + new Tuple("Network", "ExpressRouteConnections", "2024-01-01"), + new Tuple("Network", "ExpressRouteCrossConnectionPeerings", "2024-01-01"), + new Tuple("Network", "ExpressRouteCrossConnections", "2024-01-01"), + new Tuple("Network", "ExpressRouteGateways", "2024-01-01"), + new Tuple("Network", "ExpressRouteLinks", "2024-01-01"), + new Tuple("Network", "ExpressRoutePortAuthorizations", "2024-01-01"), + new Tuple("Network", "ExpressRoutePorts", "2024-01-01"), + new Tuple("Network", "ExpressRoutePortsLocations", "2024-01-01"), + new Tuple("Network", "ExpressRouteProviderPort", "2024-01-01"), + new Tuple("Network", "ExpressRouteProviderPortsLocation", "2024-01-01"), + new Tuple("Network", "ExpressRouteServiceProviders", "2024-01-01"), + new Tuple("Network", "FirewallPolicies", "2024-01-01"), + new Tuple("Network", "FirewallPolicyDeployments", "2024-01-01"), + new Tuple("Network", "FirewallPolicyDrafts", "2024-01-01"), + new Tuple("Network", "FirewallPolicyIdpsSignatures", "2024-01-01"), + new Tuple("Network", "FirewallPolicyIdpsSignaturesFilterValues", "2024-01-01"), + new Tuple("Network", "FirewallPolicyIdpsSignaturesOverrides", "2024-01-01"), + new Tuple("Network", "FirewallPolicyRuleCollectionGroupDrafts", "2024-01-01"), + new Tuple("Network", "FirewallPolicyRuleCollectionGroups", "2024-01-01"), + new Tuple("Network", "FlowLogs", "2024-01-01"), + new Tuple("Network", "GetActiveSessions", "2024-01-01"), + new Tuple("Network", "GetBastionShareableLink", "2024-01-01"), + new Tuple("Network", "HubRouteTables", "2024-01-01"), + new Tuple("Network", "HubVirtualNetworkConnections", "2024-01-01"), + new Tuple("Network", "InboundNatRules", "2024-01-01"), + new Tuple("Network", "InboundSecurityRule", "2024-01-01"), + new Tuple("Network", "IpAllocations", "2024-01-01"), + new Tuple("Network", "IpGroups", "2024-01-01"), + new Tuple("Network", "ListActiveConnectivityConfigurations", "2024-01-01"), + new Tuple("Network", "ListActiveSecurityAdminRules", "2024-01-01"), + new Tuple("Network", "ListNetworkManagerEffectiveConnectivityConfigurations", "2024-01-01"), + new Tuple("Network", "ListNetworkManagerEffectiveSecurityAdminRules", "2024-01-01"), + new Tuple("Network", "LoadBalancerBackendAddressPools", "2024-01-01"), + new Tuple("Network", "LoadBalancerFrontendIPConfigurations", "2024-01-01"), + new Tuple("Network", "LoadBalancerLoadBalancingRules", "2024-01-01"), + new Tuple("Network", "LoadBalancerNetworkInterfaces", "2024-01-01"), + new Tuple("Network", "LoadBalancerOutboundRules", "2024-01-01"), + new Tuple("Network", "LoadBalancerProbes", "2024-01-01"), + new Tuple("Network", "LoadBalancers", "2024-01-01"), + new Tuple("Network", "LocalNetworkGateways", "2024-01-01"), + new Tuple("Network", "NatGateways", "2024-01-01"), + new Tuple("Network", "NatRules", "2024-01-01"), + new Tuple("Network", "NetworkGroups", "2024-01-01"), + new Tuple("Network", "NetworkInterfaceIPConfigurations", "2024-01-01"), + new Tuple("Network", "NetworkInterfaceLoadBalancers", "2024-01-01"), + new Tuple("Network", "NetworkInterfaceTapConfigurations", "2024-01-01"), + new Tuple("Network", "NetworkInterfaces", "2024-01-01"), + new Tuple("Network", "NetworkManagerCommits", "2024-01-01"), + new Tuple("Network", "NetworkManagerDeploymentStatus", "2024-01-01"), + new Tuple("Network", "NetworkManagers", "2024-01-01"), + new Tuple("Network", "NetworkProfiles", "2024-01-01"), + new Tuple("Network", "NetworkSecurityGroups", "2024-01-01"), + new Tuple("Network", "NetworkVirtualApplianceConnections", "2024-01-01"), + new Tuple("Network", "NetworkVirtualAppliances", "2024-01-01"), + new Tuple("Network", "NetworkWatchers", "2024-01-01"), + new Tuple("Network", "Operations", "2024-01-01"), + new Tuple("Network", "P2SVpnGateways", "2024-01-01"), + new Tuple("Network", "P2sVpnGateways", "2024-01-01"), + new Tuple("Network", "PacketCaptures", "2024-01-01"), + new Tuple("Network", "PeerExpressRouteCircuitConnections", "2024-01-01"), + new Tuple("Network", "PrivateDnsZoneGroups", "2024-01-01"), + new Tuple("Network", "PrivateEndpoints", "2024-01-01"), + new Tuple("Network", "PrivateLinkServices", "2024-01-01"), + new Tuple("Network", "PublicIPAddresses", "2024-01-01"), + new Tuple("Network", "PublicIPPrefixes", "2024-01-01"), + new Tuple("Network", "PutBastionShareableLink", "2024-01-01"), + new Tuple("Network", "ResourceNavigationLinks", "2024-01-01"), + new Tuple("Network", "RouteFilterRules", "2024-01-01"), + new Tuple("Network", "RouteFilters", "2024-01-01"), + new Tuple("Network", "RouteMaps", "2024-01-01"), + new Tuple("Network", "RouteTables", "2024-01-01"), + new Tuple("Network", "Routes", "2024-01-01"), + new Tuple("Network", "RoutingIntent", "2024-01-01"), + new Tuple("Network", "ScopeConnections", "2024-01-01"), + new Tuple("Network", "SecurityAdminConfigurations", "2024-01-01"), + new Tuple("Network", "SecurityPartnerProviders", "2024-01-01"), + new Tuple("Network", "SecurityRules", "2024-01-01"), + new Tuple("Network", "ServiceAssociationLinks", "2024-01-01"), + new Tuple("Network", "ServiceEndpointPolicies", "2024-01-01"), + new Tuple("Network", "ServiceEndpointPolicyDefinitions", "2024-01-01"), + new Tuple("Network", "ServiceTagInformation", "2024-01-01"), + new Tuple("Network", "ServiceTags", "2024-01-01"), + new Tuple("Network", "StaticMembers", "2024-01-01"), + new Tuple("Network", "Subnets", "2024-01-01"), + new Tuple("Network", "SubscriptionNetworkManagerConnections", "2024-01-01"), + new Tuple("Network", "SupportedSecurityProviders", "2024-01-01"), + new Tuple("Network", "Usages", "2024-01-01"), + new Tuple("Network", "VirtualApplianceSites", "2024-01-01"), + new Tuple("Network", "VirtualApplianceSkus", "2024-01-01"), + new Tuple("Network", "VirtualHubBgpConnection", "2024-01-01"), + new Tuple("Network", "VirtualHubBgpConnections", "2024-01-01"), + new Tuple("Network", "VirtualHubIpConfiguration", "2024-01-01"), + new Tuple("Network", "VirtualHubRouteTableV2s", "2024-01-01"), + new Tuple("Network", "VirtualHubs", "2024-01-01"), + new Tuple("Network", "VirtualNetworkGatewayConnections", "2024-01-01"), + new Tuple("Network", "VirtualNetworkGatewayNatRules", "2024-01-01"), + new Tuple("Network", "VirtualNetworkGateways", "2024-01-01"), + new Tuple("Network", "VirtualNetworkPeerings", "2024-01-01"), + new Tuple("Network", "VirtualNetworkTaps", "2024-01-01"), + new Tuple("Network", "VirtualNetworks", "2024-01-01"), + new Tuple("Network", "VirtualRouterPeerings", "2024-01-01"), + new Tuple("Network", "VirtualRouters", "2024-01-01"), + new Tuple("Network", "VirtualWans", "2024-01-01"), + new Tuple("Network", "VpnConnections", "2024-01-01"), + new Tuple("Network", "VpnGateways", "2024-01-01"), + new Tuple("Network", "VpnLinkConnections", "2024-01-01"), + new Tuple("Network", "VpnServerConfigurations", "2024-01-01"), + new Tuple("Network", "VpnServerConfigurationsAssociatedWithVirtualWan", "2024-01-01"), + new Tuple("Network", "VpnSiteLinkConnections", "2024-01-01"), + new Tuple("Network", "VpnSiteLinks", "2024-01-01"), + new Tuple("Network", "VpnSites", "2024-01-01"), + new Tuple("Network", "VpnSitesConfiguration", "2024-01-01"), + new Tuple("Network", "WebApplicationFirewallPolicies", "2024-01-01"), + new Tuple("Network", "WebCategories", "2024-01-01"), + new Tuple("Network", "configurationPolicyGroups", "2024-01-01"), + new Tuple("Network", "generatevirtualwanvpnserverconfigurationvpnprofile", "2024-01-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "2.0.4421"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/network/resource-manager/readme.md --csharp --version=2.0.4421 --reflect-api-versions --csharp-sdks-folder=D:\\GitRepos\\AzureSdkForNet4\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "main"; - public static readonly String GithubCommidId = "382192a08796a202d9d1915e4d2e339dfd4d110d"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityAdminConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityAdminConfigurationsOperations.cs index 810802490626f..fe50649721793 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityAdminConfigurationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityAdminConfigurationsOperations.cs @@ -113,7 +113,7 @@ internal SecurityAdminConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -324,7 +324,7 @@ internal SecurityAdminConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "configurationName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -534,7 +534,7 @@ internal SecurityAdminConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "configurationName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -794,7 +794,7 @@ internal SecurityAdminConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "configurationName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityPartnerProvidersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityPartnerProvidersOperations.cs index 3f78ef5fd5092..55ed16ca464ac 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityPartnerProvidersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityPartnerProvidersOperations.cs @@ -116,7 +116,7 @@ internal SecurityPartnerProvidersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -343,7 +343,7 @@ internal SecurityPartnerProvidersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal SecurityPartnerProvidersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal SecurityPartnerProvidersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -902,7 +902,7 @@ internal SecurityPartnerProvidersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1086,7 +1086,7 @@ internal SecurityPartnerProvidersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityRulesOperations.cs index 5f369b869e193..378cdc349fed6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityRulesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityRulesOperations.cs @@ -126,7 +126,7 @@ internal SecurityRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal SecurityRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -549,7 +549,7 @@ internal SecurityRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -746,7 +746,7 @@ internal SecurityRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceAssociationLinksOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceAssociationLinksOperations.cs index 428136bc4046e..c7d77ed828e1e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceAssociationLinksOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceAssociationLinksOperations.cs @@ -101,7 +101,7 @@ internal ServiceAssociationLinksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPoliciesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPoliciesOperations.cs index 1d4a6cae706d6..c9976d31bbb3f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPoliciesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPoliciesOperations.cs @@ -119,7 +119,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -538,7 +538,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -721,7 +721,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -910,7 +910,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1094,7 +1094,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPolicyDefinitionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPolicyDefinitionsOperations.cs index 6e1884d88dc65..ba036429fa98f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPolicyDefinitionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPolicyDefinitionsOperations.cs @@ -127,7 +127,7 @@ internal ServiceEndpointPolicyDefinitionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -353,7 +353,7 @@ internal ServiceEndpointPolicyDefinitionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -551,7 +551,7 @@ internal ServiceEndpointPolicyDefinitionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -745,7 +745,7 @@ internal ServiceEndpointPolicyDefinitionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagInformationOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagInformationOperations.cs index 0b0f3c211b812..206f47d046ce2 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagInformationOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagInformationOperations.cs @@ -96,7 +96,7 @@ internal ServiceTagInformationOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs index 794804e35d864..3197d000de247 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs @@ -90,7 +90,7 @@ internal ServiceTagsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/StaticMembersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/StaticMembersOperations.cs index cb9f70d0c3827..47d909901ea26 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/StaticMembersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/StaticMembersOperations.cs @@ -108,7 +108,7 @@ internal StaticMembersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "staticMemberName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -327,7 +327,7 @@ internal StaticMembersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "staticMemberName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -561,7 +561,7 @@ internal StaticMembersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "staticMemberName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -766,7 +766,7 @@ internal StaticMembersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs index 2c2c309264029..a0aae455ee575 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs @@ -129,7 +129,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -414,7 +414,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -612,7 +612,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -804,7 +804,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1036,7 +1036,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1232,7 +1232,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubscriptionNetworkManagerConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubscriptionNetworkManagerConnectionsOperations.cs index e8f78fbc5aa3c..cbafa668689a1 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubscriptionNetworkManagerConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubscriptionNetworkManagerConnectionsOperations.cs @@ -94,7 +94,7 @@ internal SubscriptionNetworkManagerConnectionsOperations(NetworkManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "networkManagerConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -304,7 +304,7 @@ internal SubscriptionNetworkManagerConnectionsOperations(NetworkManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "networkManagerConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -486,7 +486,7 @@ internal SubscriptionNetworkManagerConnectionsOperations(NetworkManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "networkManagerConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -664,7 +664,7 @@ internal SubscriptionNetworkManagerConnectionsOperations(NetworkManagementClient { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/UsagesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/UsagesOperations.cs index 7b70c0bdf59c6..803e85fb24d87 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/UsagesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/UsagesOperations.cs @@ -94,7 +94,7 @@ internal UsagesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VipSwapOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VipSwapOperations.cs index 16e00ed6cbad7..0050c5e0b049e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VipSwapOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VipSwapOperations.cs @@ -97,7 +97,7 @@ internal VipSwapOperations(NetworkManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string singletonResource = "swap"; - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,7 +321,7 @@ internal VipSwapOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -521,7 +521,7 @@ internal VipSwapOperations(NetworkManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string singletonResource = "swap"; - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualApplianceSitesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualApplianceSitesOperations.cs index 6800c12d7393a..9b4953aa16f81 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualApplianceSitesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualApplianceSitesOperations.cs @@ -126,7 +126,7 @@ internal VirtualApplianceSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -352,7 +352,7 @@ internal VirtualApplianceSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -550,7 +550,7 @@ internal VirtualApplianceSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -743,7 +743,7 @@ internal VirtualApplianceSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualApplianceSkusOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualApplianceSkusOperations.cs index 1ca894ae5d051..ee54c4cf1f6ac 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualApplianceSkusOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualApplianceSkusOperations.cs @@ -80,7 +80,7 @@ internal VirtualApplianceSkusOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -263,7 +263,7 @@ internal VirtualApplianceSkusOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "skuName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionOperations.cs index b79c8693ca609..2009af9fcaed6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionOperations.cs @@ -101,7 +101,7 @@ internal VirtualHubBgpConnectionOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -370,7 +370,7 @@ internal VirtualHubBgpConnectionOperations(NetworkManagementClient client) { parameters.Validate(); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -595,7 +595,7 @@ internal VirtualHubBgpConnectionOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionsOperations.cs index 39d9d6244254a..0487d955f321c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionsOperations.cs @@ -94,7 +94,7 @@ internal VirtualHubBgpConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -262,10 +262,10 @@ internal VirtualHubBgpConnectionsOperations(NetworkManagementClient client) /// /// The cancellation token. /// - public async Task> ListLearnedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>>> ListLearnedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginListLearnedRoutesWithHttpMessagesAsync(resourceGroupName, hubName, connectionName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse>> _response = await BeginListLearnedRoutesWithHttpMessagesAsync(resourceGroupName, hubName, connectionName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -288,10 +288,10 @@ internal VirtualHubBgpConnectionsOperations(NetworkManagementClient client) /// /// The cancellation token. /// - public async Task> ListAdvertisedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>>> ListAdvertisedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginListAdvertisedRoutesWithHttpMessagesAsync(resourceGroupName, hubName, connectionName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse>> _response = await BeginListAdvertisedRoutesWithHttpMessagesAsync(resourceGroupName, hubName, connectionName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -328,7 +328,7 @@ internal VirtualHubBgpConnectionsOperations(NetworkManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginListLearnedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>>> BeginListLearnedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -346,7 +346,7 @@ internal VirtualHubBgpConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -466,7 +466,7 @@ internal VirtualHubBgpConnectionsOperations(NetworkManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -479,7 +479,7 @@ internal VirtualHubBgpConnectionsOperations(NetworkManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -532,7 +532,7 @@ internal VirtualHubBgpConnectionsOperations(NetworkManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginListAdvertisedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>>> BeginListAdvertisedRoutesWithHttpMessagesAsync(string resourceGroupName, string hubName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -550,7 +550,7 @@ internal VirtualHubBgpConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -670,7 +670,7 @@ internal VirtualHubBgpConnectionsOperations(NetworkManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -683,7 +683,7 @@ internal VirtualHubBgpConnectionsOperations(NetworkManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionsOperationsExtensions.cs index f4b57892ab325..6046e1411500c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionsOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubBgpConnectionsOperationsExtensions.cs @@ -13,6 +13,8 @@ namespace Microsoft.Azure.Management.Network using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using System.Collections; + using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; @@ -76,7 +78,7 @@ public static IPage List(this IVirtualHubBgpConnectionsOperations /// /// The name of the virtual hub bgp connection. /// - public static PeerRouteList ListLearnedRoutes(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName) + public static IDictionary> ListLearnedRoutes(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName) { return operations.ListLearnedRoutesAsync(resourceGroupName, hubName, connectionName).GetAwaiter().GetResult(); } @@ -99,7 +101,7 @@ public static PeerRouteList ListLearnedRoutes(this IVirtualHubBgpConnectionsOper /// /// The cancellation token. /// - public static async Task ListLearnedRoutesAsync(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task>> ListLearnedRoutesAsync(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListLearnedRoutesWithHttpMessagesAsync(resourceGroupName, hubName, connectionName, null, cancellationToken).ConfigureAwait(false)) { @@ -123,7 +125,7 @@ public static PeerRouteList ListLearnedRoutes(this IVirtualHubBgpConnectionsOper /// /// The name of the virtual hub bgp connection. /// - public static PeerRouteList ListAdvertisedRoutes(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName) + public static IDictionary> ListAdvertisedRoutes(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName) { return operations.ListAdvertisedRoutesAsync(resourceGroupName, hubName, connectionName).GetAwaiter().GetResult(); } @@ -147,7 +149,7 @@ public static PeerRouteList ListAdvertisedRoutes(this IVirtualHubBgpConnectionsO /// /// The cancellation token. /// - public static async Task ListAdvertisedRoutesAsync(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task>> ListAdvertisedRoutesAsync(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListAdvertisedRoutesWithHttpMessagesAsync(resourceGroupName, hubName, connectionName, null, cancellationToken).ConfigureAwait(false)) { @@ -170,7 +172,7 @@ public static PeerRouteList ListAdvertisedRoutes(this IVirtualHubBgpConnectionsO /// /// The name of the virtual hub bgp connection. /// - public static PeerRouteList BeginListLearnedRoutes(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName) + public static IDictionary> BeginListLearnedRoutes(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName) { return operations.BeginListLearnedRoutesAsync(resourceGroupName, hubName, connectionName).GetAwaiter().GetResult(); } @@ -193,7 +195,7 @@ public static PeerRouteList BeginListLearnedRoutes(this IVirtualHubBgpConnection /// /// The cancellation token. /// - public static async Task BeginListLearnedRoutesAsync(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task>> BeginListLearnedRoutesAsync(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginListLearnedRoutesWithHttpMessagesAsync(resourceGroupName, hubName, connectionName, null, cancellationToken).ConfigureAwait(false)) { @@ -217,7 +219,7 @@ public static PeerRouteList BeginListLearnedRoutes(this IVirtualHubBgpConnection /// /// The name of the virtual hub bgp connection. /// - public static PeerRouteList BeginListAdvertisedRoutes(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName) + public static IDictionary> BeginListAdvertisedRoutes(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName) { return operations.BeginListAdvertisedRoutesAsync(resourceGroupName, hubName, connectionName).GetAwaiter().GetResult(); } @@ -241,7 +243,7 @@ public static PeerRouteList BeginListAdvertisedRoutes(this IVirtualHubBgpConnect /// /// The cancellation token. /// - public static async Task BeginListAdvertisedRoutesAsync(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task>> BeginListAdvertisedRoutesAsync(this IVirtualHubBgpConnectionsOperations operations, string resourceGroupName, string hubName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginListAdvertisedRoutesWithHttpMessagesAsync(resourceGroupName, hubName, connectionName, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubIpConfigurationOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubIpConfigurationOperations.cs index 56a3fbd6a0f55..c3c73acbcb4e3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubIpConfigurationOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubIpConfigurationOperations.cs @@ -101,7 +101,7 @@ internal VirtualHubIpConfigurationOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "ipConfigName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal VirtualHubIpConfigurationOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -560,7 +560,7 @@ internal VirtualHubIpConfigurationOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -785,7 +785,7 @@ internal VirtualHubIpConfigurationOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "ipConfigName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubRouteTableV2sOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubRouteTableV2sOperations.cs index 9fe3e1d8ec40f..2f0a824ae2bb5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubRouteTableV2sOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubRouteTableV2sOperations.cs @@ -101,7 +101,7 @@ internal VirtualHubRouteTableV2sOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routeTableName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -346,7 +346,7 @@ internal VirtualHubRouteTableV2sOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -555,7 +555,7 @@ internal VirtualHubRouteTableV2sOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubRouteTableV2Parameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -775,7 +775,7 @@ internal VirtualHubRouteTableV2sOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routeTableName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperations.cs index ec098bf7c3d81..d119a2f1243c4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperations.cs @@ -94,7 +94,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,7 +321,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -880,10 +880,10 @@ internal VirtualHubsOperations(NetworkManagementClient client) /// /// The cancellation token. /// - public async Task GetEffectiveVirtualHubRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetEffectiveVirtualHubRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginGetEffectiveVirtualHubRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginGetEffectiveVirtualHubRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -906,10 +906,10 @@ internal VirtualHubsOperations(NetworkManagementClient client) /// /// The cancellation token. /// - public async Task GetInboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetInboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginGetInboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getInboundRoutesParameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginGetInboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getInboundRoutesParameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -932,10 +932,10 @@ internal VirtualHubsOperations(NetworkManagementClient client) /// /// The cancellation token. /// - public async Task GetOutboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetOutboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginGetOutboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getOutboundRoutesParameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginGetOutboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getOutboundRoutesParameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -995,7 +995,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { virtualHubParameters.Validate(); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1211,7 +1211,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1365,6 +1365,9 @@ internal VirtualHubsOperations(NetworkManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -1374,7 +1377,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginGetEffectiveVirtualHubRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginGetEffectiveVirtualHubRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1388,7 +1391,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1513,13 +1516,31 @@ internal VirtualHubsOperations(NetworkManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -1549,6 +1570,9 @@ internal VirtualHubsOperations(NetworkManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -1558,7 +1582,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginGetInboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginGetInboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1576,7 +1600,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "getInboundRoutesParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1701,13 +1725,31 @@ internal VirtualHubsOperations(NetworkManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -1737,6 +1779,9 @@ internal VirtualHubsOperations(NetworkManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -1746,7 +1791,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginGetOutboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginGetOutboundRoutesWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1764,7 +1809,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "getOutboundRoutesParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1889,13 +1934,31 @@ internal VirtualHubsOperations(NetworkManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperationsExtensions.cs index 08ead71ddda9c..672e1bd602e37 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperationsExtensions.cs @@ -270,9 +270,9 @@ public static IPage List(this IVirtualHubsOperations operations) /// /// Parameters supplied to get the effective routes for a specific resource. /// - public static void GetEffectiveVirtualHubRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters)) + public static VirtualHubEffectiveRouteList GetEffectiveVirtualHubRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters)) { - operations.GetEffectiveVirtualHubRoutesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters).GetAwaiter().GetResult(); + return operations.GetEffectiveVirtualHubRoutesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters).GetAwaiter().GetResult(); } /// @@ -294,9 +294,12 @@ public static IPage List(this IVirtualHubsOperations operations) /// /// The cancellation token. /// - public static async Task GetEffectiveVirtualHubRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetEffectiveVirtualHubRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.GetEffectiveVirtualHubRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.GetEffectiveVirtualHubRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// @@ -315,9 +318,9 @@ public static IPage List(this IVirtualHubsOperations operations) /// /// Parameters supplied to get the inbound routes for a connection resource. /// - public static void GetInboundRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters) + public static EffectiveRouteMapRouteList GetInboundRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters) { - operations.GetInboundRoutesAsync(resourceGroupName, virtualHubName, getInboundRoutesParameters).GetAwaiter().GetResult(); + return operations.GetInboundRoutesAsync(resourceGroupName, virtualHubName, getInboundRoutesParameters).GetAwaiter().GetResult(); } /// @@ -339,9 +342,12 @@ public static void GetInboundRoutes(this IVirtualHubsOperations operations, stri /// /// The cancellation token. /// - public static async Task GetInboundRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetInboundRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.GetInboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getInboundRoutesParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.GetInboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getInboundRoutesParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// @@ -360,9 +366,9 @@ public static void GetInboundRoutes(this IVirtualHubsOperations operations, stri /// /// Parameters supplied to get the outbound routes for a connection resource. /// - public static void GetOutboundRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters) + public static EffectiveRouteMapRouteList GetOutboundRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters) { - operations.GetOutboundRoutesAsync(resourceGroupName, virtualHubName, getOutboundRoutesParameters).GetAwaiter().GetResult(); + return operations.GetOutboundRoutesAsync(resourceGroupName, virtualHubName, getOutboundRoutesParameters).GetAwaiter().GetResult(); } /// @@ -384,9 +390,12 @@ public static void GetOutboundRoutes(this IVirtualHubsOperations operations, str /// /// The cancellation token. /// - public static async Task GetOutboundRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetOutboundRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.GetOutboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getOutboundRoutesParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.GetOutboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getOutboundRoutesParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// @@ -490,9 +499,9 @@ public static void BeginDelete(this IVirtualHubsOperations operations, string re /// /// Parameters supplied to get the effective routes for a specific resource. /// - public static void BeginGetEffectiveVirtualHubRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters)) + public static VirtualHubEffectiveRouteList BeginGetEffectiveVirtualHubRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters)) { - operations.BeginGetEffectiveVirtualHubRoutesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters).GetAwaiter().GetResult(); + return operations.BeginGetEffectiveVirtualHubRoutesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters).GetAwaiter().GetResult(); } /// @@ -514,9 +523,12 @@ public static void BeginDelete(this IVirtualHubsOperations operations, string re /// /// The cancellation token. /// - public static async Task BeginGetEffectiveVirtualHubRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginGetEffectiveVirtualHubRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters = default(EffectiveRoutesParameters), CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginGetEffectiveVirtualHubRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginGetEffectiveVirtualHubRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// @@ -535,9 +547,9 @@ public static void BeginDelete(this IVirtualHubsOperations operations, string re /// /// Parameters supplied to get the inbound routes for a connection resource. /// - public static void BeginGetInboundRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters) + public static EffectiveRouteMapRouteList BeginGetInboundRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters) { - operations.BeginGetInboundRoutesAsync(resourceGroupName, virtualHubName, getInboundRoutesParameters).GetAwaiter().GetResult(); + return operations.BeginGetInboundRoutesAsync(resourceGroupName, virtualHubName, getInboundRoutesParameters).GetAwaiter().GetResult(); } /// @@ -559,9 +571,12 @@ public static void BeginGetInboundRoutes(this IVirtualHubsOperations operations, /// /// The cancellation token. /// - public static async Task BeginGetInboundRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginGetInboundRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetInboundRoutesParameters getInboundRoutesParameters, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginGetInboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getInboundRoutesParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginGetInboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getInboundRoutesParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// @@ -580,9 +595,9 @@ public static void BeginGetInboundRoutes(this IVirtualHubsOperations operations, /// /// Parameters supplied to get the outbound routes for a connection resource. /// - public static void BeginGetOutboundRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters) + public static EffectiveRouteMapRouteList BeginGetOutboundRoutes(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters) { - operations.BeginGetOutboundRoutesAsync(resourceGroupName, virtualHubName, getOutboundRoutesParameters).GetAwaiter().GetResult(); + return operations.BeginGetOutboundRoutesAsync(resourceGroupName, virtualHubName, getOutboundRoutesParameters).GetAwaiter().GetResult(); } /// @@ -604,9 +619,12 @@ public static void BeginGetOutboundRoutes(this IVirtualHubsOperations operations /// /// The cancellation token. /// - public static async Task BeginGetOutboundRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginGetOutboundRoutesAsync(this IVirtualHubsOperations operations, string resourceGroupName, string virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginGetOutboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getOutboundRoutesParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginGetOutboundRoutesWithHttpMessagesAsync(resourceGroupName, virtualHubName, getOutboundRoutesParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs index 0b15775e92410..dc02559eb4358 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs @@ -121,7 +121,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -393,7 +393,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -581,7 +581,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -914,7 +914,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1130,7 +1130,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1313,7 +1313,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1529,7 +1529,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1763,7 +1763,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1969,7 +1969,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2174,7 +2174,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2371,7 +2371,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2557,7 +2557,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayNatRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayNatRulesOperations.cs index b2e878c36c1fd..e1309a0ed0535 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayNatRulesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayNatRulesOperations.cs @@ -101,7 +101,7 @@ internal VirtualNetworkGatewayNatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "natRuleName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal VirtualNetworkGatewayNatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualNetworkGatewayName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -560,7 +560,7 @@ internal VirtualNetworkGatewayNatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "natRuleParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -785,7 +785,7 @@ internal VirtualNetworkGatewayNatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "natRuleName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs index a1709ef45a9a8..f6dee3abcd665 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs @@ -120,7 +120,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -354,7 +354,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -546,7 +546,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -893,7 +893,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1196,7 +1196,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1512,7 +1512,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1728,7 +1728,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1911,7 +1911,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2117,7 +2117,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2314,7 +2314,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2499,7 +2499,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2709,7 +2709,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2912,7 +2912,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3109,7 +3109,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3309,7 +3309,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3511,7 +3511,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3724,7 +3724,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3927,7 +3927,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4126,7 +4126,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4331,7 +4331,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4528,7 +4528,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4727,7 +4727,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "request"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkPeeringsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkPeeringsOperations.cs index 66db3b762a5fd..37ad982c526d2 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkPeeringsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkPeeringsOperations.cs @@ -126,7 +126,7 @@ internal VirtualNetworkPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -356,7 +356,7 @@ internal VirtualNetworkPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -554,7 +554,7 @@ internal VirtualNetworkPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -756,7 +756,7 @@ internal VirtualNetworkPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkTapsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkTapsOperations.cs index 9b3f9dda9dd45..798ecb5b8c2a0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkTapsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkTapsOperations.cs @@ -116,7 +116,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -342,7 +342,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -529,7 +529,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -712,7 +712,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -901,7 +901,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1080,11 +1080,15 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } + if (parameters != null) + { + parameters.Validate(); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworksOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworksOperations.cs index 06a39407fb258..c6b7d947f5ecf 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworksOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworksOperations.cs @@ -119,7 +119,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -720,7 +720,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -919,7 +919,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1118,7 +1118,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1338,7 +1338,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1525,7 +1525,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1751,7 +1751,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRouterPeeringsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRouterPeeringsOperations.cs index 70061866cd939..6223c7e1cd4b0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRouterPeeringsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRouterPeeringsOperations.cs @@ -126,7 +126,7 @@ internal VirtualRouterPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -346,7 +346,7 @@ internal VirtualRouterPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -539,7 +539,7 @@ internal VirtualRouterPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -731,7 +731,7 @@ internal VirtualRouterPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperations.cs index 5e86b171fc335..4243a24d8c682 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperations.cs @@ -119,7 +119,7 @@ internal VirtualRoutersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -331,7 +331,7 @@ internal VirtualRoutersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -504,7 +504,7 @@ internal VirtualRoutersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -686,7 +686,7 @@ internal VirtualRoutersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -868,7 +868,7 @@ internal VirtualRoutersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWansOperations.cs similarity index 99% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperations.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWansOperations.cs index 5556bf3f27468..a3d5e73f07d36 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWansOperations.cs @@ -94,7 +94,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,7 +321,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "wANParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -913,7 +913,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "wANParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1129,7 +1129,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualWANName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWansOperationsExtensions.cs similarity index 100% rename from sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperationsExtensions.cs rename to sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWansOperationsExtensions.cs diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnConnectionsOperations.cs index 137d9773adc10..b8677f1e57191 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnConnectionsOperations.cs @@ -101,7 +101,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -409,7 +409,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -618,7 +618,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnConnectionParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -843,7 +843,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1032,7 +1032,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1246,7 +1246,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnGatewaysOperations.cs index dd2cb7d86e847..1a32198d9a7f4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnGatewaysOperations.cs @@ -94,7 +94,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -431,7 +431,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -609,7 +609,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -811,7 +811,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { vpnGatewayParameters.Validate(); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1037,7 +1037,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnGatewayParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1235,7 +1235,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1414,7 +1414,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1617,7 +1617,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1822,7 +1822,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnLinkConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnLinkConnectionsOperations.cs index 42116b29f55f4..50b7e37fb2288 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnLinkConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnLinkConnectionsOperations.cs @@ -159,7 +159,7 @@ internal VpnLinkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -366,7 +366,7 @@ internal VpnLinkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "linkConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -556,7 +556,7 @@ internal VpnLinkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "linkConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsAssociatedWithVirtualWanOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsAssociatedWithVirtualWanOperations.cs index 2c43775a986d0..314e0da70f2ec 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsAssociatedWithVirtualWanOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsAssociatedWithVirtualWanOperations.cs @@ -120,7 +120,7 @@ internal VpnServerConfigurationsAssociatedWithVirtualWanOperations(NetworkManage { throw new ValidationException(ValidationRules.CannotBeNull, "virtualWANName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsOperations.cs index 5345e8524e62c..98663142a109d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsOperations.cs @@ -94,7 +94,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnServerConfigurationName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,7 +321,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnServerConfigurationParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -913,7 +913,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnServerConfigurationParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1129,7 +1129,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnServerConfigurationName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinkConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinkConnectionsOperations.cs index 70a40d973c9d2..c255266f5203b 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinkConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinkConnectionsOperations.cs @@ -108,7 +108,7 @@ internal VpnSiteLinkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "linkConnectionName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinksOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinksOperations.cs index 13466350b7064..105e31a637af2 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinksOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinksOperations.cs @@ -101,7 +101,7 @@ internal VpnSiteLinksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteLinkName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -297,7 +297,7 @@ internal VpnSiteLinksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesConfigurationOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesConfigurationOperations.cs index 67f7e3f45a358..6f5baa0bb114f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesConfigurationOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesConfigurationOperations.cs @@ -131,7 +131,7 @@ internal VpnSitesConfigurationOperations(NetworkManagementClient client) { request.Validate(); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesOperations.cs index 105a5c075c71d..f341b5248abc5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesOperations.cs @@ -94,7 +94,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,7 +321,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteParameters"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -917,7 +917,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { vpnSiteParameters.Validate(); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1133,7 +1133,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteName"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebApplicationFirewallPoliciesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebApplicationFirewallPoliciesOperations.cs index cc3de5108de79..237e4dc13e52f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebApplicationFirewallPoliciesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebApplicationFirewallPoliciesOperations.cs @@ -87,7 +87,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -265,7 +265,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -462,7 +462,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -675,7 +675,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { parameters.Validate(); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -920,7 +920,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebCategoriesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebCategoriesOperations.cs index b9abc3b8b93f9..623fbbb6118b5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebCategoriesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebCategoriesOperations.cs @@ -90,7 +90,7 @@ internal WebCategoriesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -273,7 +273,7 @@ internal WebCategoriesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2022-09-01"; + string apiVersion = "2024-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null;